]> git.michaelhowe.org Git - packages/o/openafs.git/commit
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@dementix.org>
Wed, 2 Nov 2011 02:32:36 +0000 (19:32 -0700)
commit5823fda443115d3aae966d09141f5de4199f5741
treec6bc60b432d3c896ca6bfd7a357209f17db4aa4f
parent0a61a148e6243339b6b6afeea986f109d9037b31
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.

Reviewed-on: http://gerrit.openafs.org/4198
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 85edec7105dd653ed1d8046b69b8262281e97bba)

Change-Id: Iee09a8bc4a0aabbd12fe156940fa61d6947642e8
Reviewed-on: http://gerrit.openafs.org/5758
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
src/vol/vutil.c