__break_lease(9)

__break_lease9

Revoke all outstanding leases on file

Usage

int __break_lease(struct inode * inode, unsigned int mode, unsigned int type);

Arguments

inode

the inode of the file to return

mode

O_RDONLY: break only write leases; O_WRONLY or O_RDWR: break all leases

type

FL_LEASE: break leases and delegations; FL_DELEG: break only delegations

Overview

break_lease (inlined for speed) has checked there already is at least some kind of lock (maybe a lease) on this file. Leases are broken on a call to open or truncate. This function can sleep unless you specified O_NONBLOCK to your open.

Releases

6 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.