reiserfsck: support `fsck -f -n`
PATCH 1/1 reiserfsck: support `fsck -f -n`
From: Roy Marples <[email protected]>
Every other fsck util out there supports non-interactive forcing and this change brings reiserfsck into line.
--- fsck/main.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
fsck/main.c +3 -2
@@ -421,8 +421,9 @@ void warn_what_will_be_done (char * file_name, struct fsck_data * data) (data->log == stdout) ?"stdout" : (data->log_file_name ? data->log_file_name : "fsck.run")); -if (!(data->options &OPT_YES ) && !user_confirmed (warn_to,"\nDo you want to " -"run this program?[N/Yes] (note need to type Yes if you do):" ,"Yes\n" )) +if (!(data->options &OPT_YES ) && !(data->options &OPT_SILENT ) && + !user_confirmed (warn_to,"\nDo you want to run this program?[N/Yes] " +"(note need to type Yes if you do):" ,"Yes\n" ))exit (EXIT_USER ); }
Signature · 1 line
1.6.1
A message that is not in the archive (sent off-list or not yet received): [email protected]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 24 lines · Edward Shishkin
-------- Original Message -------- Subject: [PATCH] reiserfsck:
supportfsck -f -nDate: Sat, 17 Jan 2009 11:19:28 -0500 From:
Mike Frysinger <[email protected]> To:
[email protected] CC: Roy Marples <[email protected]>From: Roy Marples <[email protected]>
Every other fsck util out there supports non-interactive forcing and this change brings reiserfsck into line.
Signed-off-by Mike Frysinger <[email protected]> --- fsck/main.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
fsck/main.c index 06d7bd2..cfee979 renamed from fsck/main.c +0
-0100644 ---
a/fsck/main.c+++b/fsck/main.c@@ -421,8 +421,9 @@ voidwarn_what_will_be_done(char *file_name, structfsck_data* data) (data->log== stdout) ? "stdout" : (data->log_file_name?data->log_file_name: "fsck.run"));
Quoted 7 lines
- if (!(data->options &
OPT_YES) && !user_confirmed (warn_to,
"\nDo you want to " - "run this program?[N/Yes] (note need to type
Yes if you do):", "Yes\n")) + if (!(data->options &OPT_YES) &&
!(data->options &OPT_SILENT) && + !user_confirmed (warn_to, "\nDo
you want to run this program?[N/Yes] " + "(note need to type Yes if
you do):", "Yes\n")) exit (EXIT_USER); }
This one needs a Signed-off-by from the original author. I've emailed him to request it.
- -Jeff
- --
Jeff Mahoney
SUSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.18 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
iQIcBAEBAgAGBQJQduv7AAoJEB57S2MheeWyyFUP/29aTygqB3d61LOTA5YxFTFf 7AR9DJodJoUohHUKvUtQ5LDI+PZV92kBAV+H7trRnhiNE0tvveRd9jdBqStGhLoZ o88KFxbqCD2s9O0BDn0tfB+Jc1aNQxmoHa3wXehVAoncJrIMtc2NHDp8qac/3m5L 5j5ATgCoTo7pNKG8UMaRRadiqL9qp7h9sS72yJmKMJQdNkhAsrpJnZWwMjI2sPOz TZRwWah0HW13l9hqtCKY5quMD2SXDuvu3yaavEpTAg2p1YNBuFTtOua2S/tyTos6 kvzA0tI/h1VbVoL8jhBX4Dmhh37+/F3/TOrWB4tKRpS7AjyaMvaGeaYhk2EAlSzt ZY46Wy5PmVo9opkKwHk/QflTPpSjMNeaxEYskQYmuTmYH/rc1xlU/lVdAH/oCAIf WF7XSl48i9enI8k5kKB2/j3BWVvqU4APYY/w35O+yfQHLPuGfw2N6mPOATZhPU5U 6o9JFi7ihwe7Px/msYdvF9dqT3V+ffgcU63wtSbQVdvkSpVoTIREWz2BknLW/Q5a 9Qt27/5G2a0AMyUWro98CA1f+b3YfHAm/+Kn4Acqjqztj/k3S97n1vOBmNqT/cvX pE9WyTbYPl5DNlOB363V5/yCjpFhTt3CoqzJ6ar0jQcVeSzeoaYm/dwXwzZ5AUjZ WHnUHyMGgpM6XrPWhxps
=HkXe
-----END PGP SIGNATURE-----