reiserfs-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] reiserfsck: support `fsck -f -n`
@ 2009-01-17 16:19 Mike Frysinger
       [not found] ` <50759633.2060806@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2009-01-17 16:19 UTC (permalink / raw)
  To: reiserfs-devel; +Cc: Roy Marples

From: Roy Marples <roy@marples.name>

Every other fsck util out there supports non-interactive forcing and this
change brings reiserfsck into line.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 fsck/main.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/fsck/main.c b/fsck/main.c
index 06d7bd2..cfee979 100644
--- a/fsck/main.c
+++ b/fsck/main.c
@@ -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);
 }
 
-- 
1.6.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: Fwd: [PATCH] reiserfsck: support `fsck -f -n`
       [not found] ` <50759633.2060806@gmail.com>
@ 2012-10-11 15:55   ` Jeff Mahoney
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Mahoney @ 2012-10-11 15:55 UTC (permalink / raw)
  To: Edward Shishkin; +Cc: reiserfs-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/10/12 11:37 AM, Edward Shishkin wrote:
> 
> 
> 
> -------- Original Message -------- Subject: 	[PATCH] reiserfsck:
> support `fsck -f -n` Date: 	Sat, 17 Jan 2009 11:19:28 -0500 From:
> Mike Frysinger <vapier@gentoo.org> To:
> reiserfs-devel@vger.kernel.org CC: 	Roy Marples <roy@marples.name>
> 
> 
> 
> From: Roy Marples <roy@marples.name>
> 
> Every other fsck util out there supports non-interactive forcing
> and this change brings reiserfsck into line.
> 
> Signed-off-by: Mike Frysinger <vapier@gentoo.org> --- fsck/main.c |
> 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/fsck/main.c b/fsck/main.c index 06d7bd2..cfee979
> 100644 --- a/fsck/main.c +++ b/fsck/main.c @@ -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); }
> 

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-----

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-11 15:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-17 16:19 [PATCH] reiserfsck: support `fsck -f -n` Mike Frysinger
     [not found] ` <50759633.2060806@gmail.com>
2012-10-11 15:55   ` Fwd: " Jeff Mahoney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).