lsfd: add columns for SIZE

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
This commit is contained in:
Masatake YAMATO 2021-05-03 15:59:26 +09:00 committed by Karel Zak
parent 61fe735065
commit bec8c27141
3 changed files with 7 additions and 0 deletions

View file

@ -136,6 +136,9 @@ static bool file_fill_column(struct proc *proc,
case COL_UID:
xasprintf(&str, "%d", (int)file->stat.st_uid);
break;
case COL_SIZE:
xasprintf(&str, "%ju", file->stat.st_size);
break;
default:
return false;
};