]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
downmap F_*LK64 to F_*LK if they're different. we have no large files for now.
authorKris Van Hees <kvanhees@sinenomine.net>
Fri, 22 Nov 2002 21:01:29 +0000 (21:01 +0000)
committerGarry Zacheiss <zacheiss@mit.edu>
Fri, 22 Nov 2002 21:01:29 +0000 (21:01 +0000)
(cherry picked from commit 27005896103e250d045b005edc5a17cbec09131b)

src/afs/LINUX/osi_vnodeops.c

index e58af0ac7d2cdddbec3a48d376febd3ac74a83a9..ded23d890889001af6585454394b112f574aca70 100644 (file)
@@ -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();