OpenAFS CVS Commit: openafs/src/vol by shadow
cvs@GRAND.CENTRAL.ORG
cvs@GRAND.CENTRAL.ORG
Mon, 13 Dec 2004 14:41:11 EST
Update of /cvs/openafs/src/vol
In directory GRAND.CENTRAL.ORG:/data/sb/openafs-stable-1_4_x/src/vol
Modified Files:
Tag: openafs-stable-1_4_x
volume.c volume.h
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/vol/volume.c 1.35.2.1 1.35.2.2
STABLE12-implement-vpeek-for-listvol-20041211 openafs/src/vol/volume.h 1.14.2.1 1.14.2.2