From 1932dede050797bcb3a7592e9b0663c696acd48f Mon Sep 17 00:00:00 2001 From: Nathan Neulinger Date: Wed, 14 May 2003 15:54:53 +0000 Subject: [PATCH] vol-additional-logging-20030513 FIXES 1387 additional logging for attach/detach. --- src/vol/volume.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/vol/volume.c b/src/vol/volume.c index ef3a3e5c5..fdd4426df 100644 --- a/src/vol/volume.c +++ b/src/vol/volume.c @@ -271,9 +271,10 @@ int VInitVolumePackage(ProgramType pt, int nLargeVnodes, int nSmallVnodes, /* Attach all the volumes in this partition */ for (diskP = DiskPartitionList; diskP; diskP = diskP->next) { int nAttached = 0, nUnattached = 0; + Log("Partition %s: attaching volumes\n", diskP->name); dirp = opendir(VPartitionPath(diskP)); assert(dirp); - while (dp = readdir(dirp)) { + while ((dp = readdir(dirp))) { char *p; p = strrchr(dp->d_name, '.'); if (p != NULL && strcmp(p, VHDREXT) == 0) { @@ -285,6 +286,9 @@ int VInitVolumePackage(ProgramType pt, int nLargeVnodes, int nSmallVnodes, if (error == VOFFLINE) Log("Volume %u stays offline (/vice/offline/%s exists)\n", VolumeNumber(dp->d_name), dp->d_name); + else + Log("Partition %s: attached volume %u (%s)\n", diskP->name, + VolumeNumber(dp->d_name), dp->d_name); if (vp) { VPutVolume(vp); } -- 2.39.5