From: Kris Van Hees Date: Fri, 22 Nov 2002 21:01:29 +0000 (+0000) Subject: downmap F_*LK64 to F_*LK if they're different. we have no large files for now. X-Git-Tag: openafs-stable-1_2_8~18 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=56c73153489ae962296278dc13d594920a442756;p=packages%2Fo%2Fopenafs.git downmap F_*LK64 to F_*LK if they're different. we have no large files for now. (cherry picked from commit 27005896103e250d045b005edc5a17cbec09131b) --- diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index e58af0ac7..ded23d890 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -540,6 +540,16 @@ static int afs_linux_lock(struct file *fp, int cmd, struct file_lock *flp) flock.l_start = flp->fl_start; flock.l_len = flp->fl_end - flp->fl_start; + /* Safe because there are no large files, yet */ +#if F_GETLK != F_GETLK64 + if (cmd = F_GETLK64) + cmd = F_GETLK; + else if (cmd = F_SETLK64) + cmd = F_SETLK; + else if (cmd = F_SETLKW64) + cmd = F_SETLKW; +#endif /* F_GETLK != F_GETLK64 */ + AFS_GLOCK(); code = afs_lockctl(vcp, &flock, cmd, credp); AFS_GUNLOCK();