From abaf0c8e86193f9f5de0d37c4124826c6998ac99 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 3 Nov 2017 11:20:41 +0100 Subject: [PATCH] lslocks: add note about OFDLCK Signed-off-by: Karel Zak --- misc-utils/lslocks.8 | 4 ++-- misc-utils/lslocks.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)")}, -- 2.47.2