vol: Handle large volume IDs in VLockFile
authorAndrew Deason <adeason@sinenomine.net>
Thu, 10 Mar 2011 23:59:39 +0000 (17:59 -0600)
committerDerrick Brashear <shadow@dementia.org>
Mon, 21 Mar 2011 17:27:24 +0000 (10:27 -0700)
commit85edec7105dd653ed1d8046b69b8262281e97bba
tree418b92aba0e4f17cc353e91dd88d9d1c92cf3895
parentb146d627181f7b631da7655f338748a8f1d25272
vol: Handle large volume IDs in VLockFile

VLockVolumeByIdNB currently cannot handle volume IDs larger than
2^31-1. Fix this by using struct flock64, F_SETLKW64, and F_SETLK64 in
the VLockFile functions where possible.

Thanks to Simon Wilkinson for pointing out F_SETLK64.

Change-Id: I422c685aec035716e2f42d13bd97541425ead6a2
Reviewed-on: http://gerrit.openafs.org/4198
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/vol/vutil.c