Re: [RFC][glibc PATCH] fcntl-linux.h: add new definitions and manual updates for open file description locks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



   > Likewise.  You infact write that it does get the lock information
   > later in the document wrt. F_OFD_GETLK.

   Sorry, I disagree here...GETLK is really a misnomer, IMO. TESTLK
   would have been a better name.

   GETLK are used is to "get the first lock".

   It's a way to test whether a particular lock can be applied, and to
   return information about a conflicting lock if it can't. If, for
   instance there is no conflicting lock, then you don't "get" any
   lock information back (l_type just gets reset to F_UNLCK).

While I kinda see your point, it isn't what GETLK does; it really does
get you information about the first lock -- you're not testing
anything.  It is also the terminology used in the POSIX standard.
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux