shabbychef
shabbychef

Reputation: 1999

file lock leases via NFS v4 in C

does anybody know how to use the fancy file locking features of NFS v4? (described in e.g. About the NFS protocol (scroll down)). supposedly NFS v4 supports file lock leasing with a 45 second lifetime. I would like to believe that the linux kernel (I'm using gentoo 2.6.30) happily takes care of these details, and I can use fcntl() and it all comes out in the wash. I am guessing, however, that I have to do something special somehow to get, maintain, and release the lock lease. all help appreciated.

Upvotes: 1

Views: 1956

Answers (1)

leeeroy
leeeroy

Reputation: 11446

you are right, fcntl takes care of all this business for you. The lease management is done by the nfs client(kernel module in linux)

Upvotes: 2

Related Questions