]> git.ipfire.org Git - thirdparty/util-linux.git/commit - misc-utils/findmnt.c
findmnt: don't parse mountinfo twice
authorKarel Zak <kzak@redhat.com>
Thu, 12 Feb 2015 11:57:03 +0000 (12:57 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 12 Feb 2015 11:57:03 +0000 (12:57 +0100)
commit9c277ede65c45c1e5bc00a10c965bfaea8e2929d
tree126a05ce57702802017275bdc303b9f45a8361b0
parent4597b69249be90c248de0f4a3270901c4762f4a9
findmnt: don't parse mountinfo twice

We parse /proc/self/mountinfo to initialize cache targets, this step
is unnecessary if --mtab reads all from kernel.

Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/findmnt.c