]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
implement-vpeek-for-listvol-20060124
authorDerrick Brashear <shadow@dementia.org>
Wed, 25 Jan 2006 03:24:25 +0000 (03:24 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 25 Jan 2006 03:24:25 +0000 (03:24 +0000)
roll back for listonevolume (only)

src/volser/volprocs.c

index 7795aa7cac7e8c2120aa53f43e0da4e6598ee87c..ae1664fd27b496ae1c19f9de418d018b14d93a24 100644 (file)
@@ -1792,7 +1792,7 @@ VolListOneVolume(struct rx_call *acid, afs_int32 partid, afs_int32
                pntr->volid = volid;
                goto drop;
            }
-           tv = VAttachVolumeByName(&error, pname, volname, V_PEEK);
+           tv = VAttachVolumeByName(&error, pname, volname, V_READONLY);
            if (error) {
                pntr->status = 0;       /*things are messed up */
                strcpy(pntr->name, volname);
@@ -2007,7 +2007,7 @@ VolXListOneVolume(struct rx_call *a_rxCidP, afs_int32 a_partID,
            /*
             * Attach the volume, give up on the volume if we can't.
             */
-           tv = VAttachVolumeByName(&error, pname, volname, V_PEEK);
+           tv = VAttachVolumeByName(&error, pname, volname, V_READONLY);
            if (error) {
                xInfoP->status = 0;     /*things are messed up */
                strcpy(xInfoP->name, volname);