Whamcloud - gitweb
fsck: Make -Cn work correctly where n != 0
authorTheodore Ts'o <tytso@mit.edu>
Wed, 26 Mar 2008 12:53:13 +0000 (08:53 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 26 Mar 2008 12:53:13 +0000 (08:53 -0400)
commita16834335d745d631d6ee20eef0bdbe24e4b152d
treee4497238cfe369b7dcab487381c57ba2570be85e
parentbe62523be2307123886934f258cf36f4b33b1c38
fsck: Make -Cn work correctly where n != 0

Previously, fsck was only passing in -Cn to the first e2fsck process
to start up, and enabling the progress information by sending a
SIGUSR1 signal.  This didn't work if the progress information was
intended to go to file descriptor, since the information was never
passed to e2fsck.

So we now pass the progress fd in as a negative number if the progress
information is intended to be initially suppressed.

Addresses-Launchpad-Bug: #203323
Addresses-Sourceforge-Bug: #1926023

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/fsck.c