From: Masatake YAMATO Date: Mon, 3 May 2021 06:47:02 +0000 (+0900) Subject: lsfd: give column widths X-Git-Tag: v2.38-rc1~144^2~165 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=61fe7350657b4d98dfed58d3990bbd6f9d22b549;p=thirdparty%2Futil-linux.git lsfd: give column widths Signed-off-by: Masatake YAMATO --- diff --git a/misc-utils/lsfd.c b/misc-utils/lsfd.c index 3bae21f7d5..b245113cd3 100644 --- a/misc-utils/lsfd.c +++ b/misc-utils/lsfd.c @@ -78,7 +78,7 @@ struct colinfo { static struct colinfo infos[] = { [COL_ASSOC] = { "ASSOC", 0, SCOLS_FL_RIGHT, SCOLS_JSON_STRING, N_("association between file and process") }, - [COL_COMMAND] = { "COMMAND", 0, 0, SCOLS_JSON_STRING, + [COL_COMMAND] = { "COMMAND", 15, 0, SCOLS_JSON_STRING, N_("command of the process opening the file") }, [COL_DEV] = { "DEV", 0, SCOLS_FL_RIGHT, SCOLS_JSON_STRING, N_("ID of device containing file") }, @@ -88,9 +88,9 @@ static struct colinfo infos[] = { N_("file descriptor for the file") }, [COL_INODE] = { "INODE", 0, SCOLS_FL_RIGHT, SCOLS_JSON_NUMBER, N_("inode number") }, - [COL_NAME] = { "NAME", 0, 0, SCOLS_JSON_STRING, + [COL_NAME] = { "NAME", 45, 0, SCOLS_JSON_STRING, N_("name of the file") }, - [COL_PID] = { "PID", 0, SCOLS_FL_RIGHT, SCOLS_JSON_NUMBER, + [COL_PID] = { "PID", 5, SCOLS_FL_RIGHT, SCOLS_JSON_NUMBER, N_("PID of the process opening the file") }, [COL_RDEV] = { "RDEV", 0, SCOLS_FL_RIGHT, SCOLS_JSON_STRING, N_("device ID (if special file)") },