[OpenAFS] another approach for detecting byte-range-lock safeness

chas williams - CONTRACTOR chas@cmf.nrl.navy.mil
Mon, 25 Dec 2006 19:42:06 -0500


In message <x3k60f1opb.fsf@nowhere.com>,Adam Megacz writes:
>If so, perhaps I can check what OS is running, use some hardwired
>syscall value if OS==Linux, and use the fork()-and-fcntl(F_SETLK) to
>look for (local) enforcement of byte-range locks if OS!=Linux.

why the special tests for linux?  do this for all systems.  this is a
much better test than filesystem type.  you are testing for the feature
you need.