Support mandatory locks (nbmand)
authorRohan Puri <rohan.puri15@gmail.com>
Wed, 29 Jun 2011 18:00:58 +0000 (11:00 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 1 Jul 2011 20:39:40 +0000 (13:39 -0700)
commita89c3e0bd509267225b5699c65aaf39acf2fce18
treeff9588be2ce4bd352a220df504aa35c65a5c1459
parent2cf7f52bc42f215d4ef27d0fd75fc1b1417cb841
Support mandatory locks (nbmand)

The Linux kernel already has support for mandatory locking.  This
change just replaces the Solaris mandatory locking calls with the
Linux equivilants.  In fact, it looks like this code could be
removed entirely because this checking is already done generically
in the Linux VFS.  However, for now we'll leave it in place even
if it is redundant just in case we missed something.

The original patch to update the code to support mandatory locking
was done by Rohan Puri.  This patch is an updated version which is
compatible with the previous mount option handling changes.

Original-Patch-by: Rohan Puri <rohan.puri15@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #222
Closes #253
module/zfs/zfs_vnops.c
module/zfs/zfs_znode.c