lkml.org 
[lkml]   [1998]   [Jul]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: flock and fcntl(F_SETLK)
    Date
    > fcntl(F_SETLK) uses the f_op->lock(), so why doesn't flock() have a
    > similar hook in the file system?
    >
    > This inconsistency makes flock() broken when using network file
    > systems that have proper locking (like AFS). How is this supposed to
    > be implemented in network file systems?

    The semantics of flock not locking on network file systems go back to
    SunOS and make some sense. flock() gives you a locking scheme that is
    local and fast, lockf/fcntl locks give you slow but networked NFS locks.

    Alan


    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

    \
     
     \ /
      Last update: 2005-03-22 13:43    [W:0.022 / U:0.016 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site