flock and fcntl(F_SETLK)

Magnus Ahltorp map at stacken.kth.se
Sun Jul 19 23:36:20 CEST 1998


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?

/Magnus
map at stacken.kth.se





More information about the Arla-drinkers mailing list