]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2scrub_all: make sure fd 3 is closed before running lvm commands
authorTheodore Ts'o <tytso@mit.edu>
Mon, 23 Sep 2019 17:17:13 +0000 (13:17 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 23 Sep 2019 17:17:13 +0000 (13:17 -0400)
commit8111b79da71e24bf945ea3ff8b6a83ecc779f932
tree92ecb956df9fa6ffd626003ceb8537c62a9230ba
parent1b866f5584bc9deefab7c657895413eb7f13f1f9
e2scrub_all: make sure fd 3 is closed before running lvm commands

Some versions of cron leave fd 3 open for some unknown reason.  So
when e2scrub_all is run by cron (on non-systemd systems) this results
in an annoying message from the Cron Daemon because lvm will print
warning messages about "leaked file descriptors.  So force close fd 3
at the beginning of e2scrub and e2scrub_all.

Addresses-Debian-Bug: #940240
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
scrub/e2scrub.in
scrub/e2scrub_all.in