OpenAFS CVS Commit: openafs/src/volser by shadow
cvs@GRAND.CENTRAL.ORG
cvs@GRAND.CENTRAL.ORG
Mon, 13 Dec 2004 14:41:13 EST
Update of /cvs/openafs/src/volser
In directory GRAND.CENTRAL.ORG:/data/sb/openafs-stable-1_4_x/src/volser
Modified Files:
Tag: openafs-stable-1_4_x
volprocs.c
Log Message:
DELTA STABLE12-implement-vpeek-for-listvol-20041211
AUTHOR jhutz@cmu.edu
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.
--- DELTA config for openafs-stable-1_4_x follows ---
STABLE12-implement-vpeek-for-listvol-20041211 openafs/src/volser/volprocs.c 1.34.2.2 1.34.2.3