diff options
author | Karel Zak | 2015-04-02 12:30:26 +0200 |
---|---|---|
committer | Karel Zak | 2015-04-02 17:32:47 +0200 |
commit | 398f7f9d99648d9c0fbc901f921d05aba9301a9a (patch) | |
tree | d3af59bc3078f04287fcdbc15e63af6ea92ed298 /libmount/src/lock.c | |
parent | lsblk: don't ignore dependences for partitioned devies (diff) | |
download | kernel-qcow2-util-linux-398f7f9d99648d9c0fbc901f921d05aba9301a9a.tar.gz kernel-qcow2-util-linux-398f7f9d99648d9c0fbc901f921d05aba9301a9a.tar.xz kernel-qcow2-util-linux-398f7f9d99648d9c0fbc901f921d05aba9301a9a.zip |
libmount: add note about flock() to docs
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/lock.c')
-rw-r--r-- | libmount/src/lock.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libmount/src/lock.c b/libmount/src/lock.c index 8fc971617..0d943295a 100644 --- a/libmount/src/lock.c +++ b/libmount/src/lock.c @@ -511,6 +511,10 @@ failed: * 3. a) link() success: setups F_SETLK lock (see fcnlt(2)) * b) link() failed: wait (max 30s) on F_SETLKW lock, goto 2. * + * Note that when the lock is used by mnt_update_table() interface then libmount + * uses flock() for private library file /run/mount/utab. The fcnlt(2) is used only + * for backwardly compatible stuff like /etc/mtab. + * * Returns: 0 on success or negative number in case of error (-ETIMEOUT is case * of stale lock file). */ |