findmnt: revise the code for -I and -D option
authorMasatake YAMATO <yamato@redhat.com>
Fri, 5 Apr 2024 13:40:36 +0000 (22:40 +0900)
committerChris Hofstaedtler <zeha@debian.org>
Sat, 27 Apr 2024 12:23:31 +0000 (14:23 +0200)
commitce5c955c5c6d445c77399dd6cd8b55732528ce6c
tree337e4aa3f3b0e674bbee1bebfff0e1e7914c5a5a
parent7616cedf0cd546dd672d70bdc4316e32723eaab4
findmnt: revise the code for -I and -D option

Fixes #2913.

3dd79293b5b655da9d913dedd8facb08959a7826 added -I option.
However, the code used bit flags (FL_DF and FL_DF_INODES) wrongly;
the code broke the output of -D option.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
(cherry picked from commit aa0c45e8686df509c169121473d2cfb4fe18c3ea)

Gbp-Pq: Topic upstream
Gbp-Pq: Name findmnt-revise-the-code-for-I-and-D-option.patch
misc-utils/findmnt.c
misc-utils/findmnt.h
tests/expected/findmnt/df-options [new file with mode: 0644]
tests/ts/findmnt/df-options [new file with mode: 0755]