From: Karel Zak Date: Fri, 3 Nov 2017 10:20:41 +0000 (+0100) Subject: lslocks: add note about OFDLCK X-Git-Tag: v2.32-rc1~231 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4707bc83e1ff6b634fb4ed38c8050b34fc2487a1;p=thirdparty%2Futil-linux.git lslocks: add note about OFDLCK Signed-off-by: Karel Zak --- diff --git a/misc-utils/lslocks.8 b/misc-utils/lslocks.8 index db5dc3245d..09b8d41814 100644 --- a/misc-utils/lslocks.8 +++ b/misc-utils/lslocks.8 @@ -53,8 +53,8 @@ The command name of the process holding the lock. .IP "PID" The process ID of the process which holds the lock. .IP "TYPE" -The type of lock; can be FLOCK (created with \fBflock\fR(2)) or POSIX -(created with \fBfcntl\fR(2) and \fBlockf\fR(3)). +The type of lock; can be FLOCK (created with \fBflock\fR(2)), POSIX +(created with \fBfcntl\fR(2) and \fBlockf\fR(3)) or OFDLCK (created with fcntl(2). .IP "SIZE" Size of the locked file. .IP "MODE" diff --git a/misc-utils/lslocks.c b/misc-utils/lslocks.c index 24c6d6324a..a1a7ab676c 100644 --- a/misc-utils/lslocks.c +++ b/misc-utils/lslocks.c @@ -72,7 +72,7 @@ struct colinfo { static struct colinfo infos[] = { [COL_SRC] = { "COMMAND",15, 0, N_("command of the process holding the lock") }, [COL_PID] = { "PID", 5, SCOLS_FL_RIGHT, N_("PID of the process holding the lock") }, - [COL_TYPE] = { "TYPE", 5, SCOLS_FL_RIGHT, N_("kind of lock: FL_FLOCK or FL_POSIX.") }, + [COL_TYPE] = { "TYPE", 5, SCOLS_FL_RIGHT, N_("kind of lock") }, [COL_SIZE] = { "SIZE", 4, SCOLS_FL_RIGHT, N_("size of the lock") }, [COL_MODE] = { "MODE", 5, 0, N_("lock access mode") }, [COL_M] = { "M", 1, 0, N_("mandatory state of the lock: 0 (none), 1 (set)")},