OpenAFS CVS Commit: openafs/src/vol by jaltman

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Mon, 23 Mar 2009 18:47:48 EDT


Update of /cvs/openafs/src/vol
In directory GRAND.CENTRAL.ORG:/home/jaltman/openafs/cvs-1-5/src/vol

Modified Files:
      Tag: openafs-devel-1_5_x
	partition.c partition.h vol-salvage.c 
Log Message:
DELTA DEVEL15-vol-lock-fd-type-20090323
AUTHOR jaltman@secure-endpoints.com
LICENSE IPL10

the lock_fd field of DiskPartition[64] is a file descriptor.
On Windows this is a HANDLE and on *nix platforms an int.
OpenAFS uses the FD_t type to provide platform specific type
info for file descriptors.  Use it for the lock_fd field and
the salvageLock in ObtainsSalvageLock().

Finally, the on the wire diskPartition[64] struct in volser/volint.xg
also contains a lock_fd field.  This is an on the wire field and
must be left at a fixed width of 32-bits.  Since a file descriptor
is not portable across machines we truncate the 64-bit HANDLE value
to fit in the 32-bit lock_fd field when necessary.


--- DELTA config for openafs-devel-1_5_x follows ---
DEVEL15-vol-lock-fd-type-20090323 openafs/src/vol/partition.c 1.33.2.7 1.33.2.8
DEVEL15-vol-lock-fd-type-20090323 openafs/src/vol/partition.h 1.10.2.1 1.10.2.2
DEVEL15-vol-lock-fd-type-20090323 openafs/src/vol/vol-salvage.c 1.51.2.24 1.51.2.25