Top |
void | mnt_free_lock () |
int | mnt_lock_file () |
struct libmnt_lock * | mnt_new_lock () |
void | mnt_unlock_file () |
int | mnt_lock_block_signals () |
Since v2.39 libmount does nto support classic mtab locking. Now all is based on flock only.
int
mnt_lock_file (struct libmnt_lock *ml
);
Creates a lock file.
Note that when the lock is used by mnt_update_table()
interface then libmount
uses flock()
for private library file /run/mount/utab.
void
mnt_unlock_file (struct libmnt_lock *ml
);
Unlocks the file. The function could be called independently of the lock status (for example from exit(3)).