Query: vfs_setlease
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
VFS_SETLEASE(9) The Linux VFS VFS_SETLEASE(9)NAMEvfs_setlease - sets a lease on an open fileSYNOPSISint vfs_setlease(struct file * filp, long arg, struct file_lock ** lease);ARGUMENTSfilp file pointer arg type of lease to obtain lease file_lock to useDESCRIPTIONCall this to establish a lease on the file. The (*lease)->fl_lmops->lm_break operation must be set; if not, break_lease will oops! This will call the filesystem's setlease file method, if defined. Note that there is no getlease method; instead, the filesystem setlease method should call back to setlease to add a lease to the inode's lease list, where fcntl_getlease can find it. Since fcntl_getlease only reports whether the current task holds a lease, a cluster filesystem need only do this for leases held by processes on this node. There is also no break_lease method; filesystems that handle their own leases should break leases themselves from the filesystem's open, create, and (on truncate) setattr methods.WARNINGthe only current setlease methods exist only to disable leases in certain cases. More vfs changes may be required to allow a full filesystem lease implementation.COPYRIGHTKernel Hackers Manual 3.10 June 2014 VFS_SETLEASE(9)
Related Man Pages |
---|
fence_sanlock(8) - centos |
dhclient.leases(5) - redhat |
auto_parms(1m) - hpux |
dhcpd.leases(5) - netbsd |
dhclient(8) - freebsd |
Similar Topics in the Unix Linux Community |
---|
Weird 'find' results |
DB2 convert digits to binary format |
Tar Command |
Shopt -s histappend |
Please Welcome Dave Munro to the Moderator Team! |