]> git.michaelhowe.org Git - packages/o/openafs.git/commit
STABLE14-STABLE12-implement-vpeek-for-listvol-20041211
authorJeffrey Hutzelman <jhutz@cmu.edu>
Mon, 13 Dec 2004 19:41:10 +0000 (19:41 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 13 Dec 2004 19:41:10 +0000 (19:41 +0000)
commit384ce4f4e094e0e5ffb5762b933a285d30f347db
tree443b693635181e4e56d8735b781962be5f68fea1
parentf40bc34a74937c79f8fc5c5bb7867dc714e0e573
STABLE14-STABLE12-implement-vpeek-for-listvol-20041211

FIXES 16765

 All of AFSVolListOneVolume, AFSVolXListOneVolume, AFSVolListVolumes,
 AFSVolXListVolumes currrently attach each volume to be listed with
 V_READONLY.  This makes the fileserver update and sync the volume header
 before releasing the volume to the volserver.  The result is that volume
 list operations are slow, and generate lots of fileserver load, as Jimmy
 pointed out during his talk this afternoon.

 The attached patch introduces a new attach mode, V_PEEK, which is like a
 cross between V_READONLY and V_SECRETLY.  It can be used for read-only
 operations on the volume header, where it is not necessary to inform the
 fileserver that the volume is being accessed.  The patch also changes
 the above-named RPC's to use the new mode.
src/vol/volume.c
src/vol/volume.h
src/volser/volprocs.c