* [PATCH] mke2fs: skip alignment questioning if -F specified
@ 2010-03-01 19:53 Eric Sandeen
2010-03-12 2:48 ` tytso
0 siblings, 1 reply; 5+ messages in thread
From: Eric Sandeen @ 2010-03-01 19:53 UTC (permalink / raw)
To: ext4 development
RH bug 569021 - mke2fs insists on user interaction even if stdin is not a tty and -F is passed
This is just a warning, -F should easily override it.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---
diff --git a/misc/mke2fs.c b/misc/mke2fs.c
index 4b13367..2a23bf7 100644
--- a/misc/mke2fs.c
+++ b/misc/mke2fs.c
@@ -1643,7 +1643,8 @@ got_size:
device_name, retval);
printf(_("This may result in very poor performance, "
"(re)-partitioning suggested.\n"));
- proceed_question();
+ if (!force)
+ proceed_question();
}
#endif
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] mke2fs: skip alignment questioning if -F specified
2010-03-01 19:53 [PATCH] mke2fs: skip alignment questioning if -F specified Eric Sandeen
@ 2010-03-12 2:48 ` tytso
2010-03-12 7:54 ` Andreas Dilger
0 siblings, 1 reply; 5+ messages in thread
From: tytso @ 2010-03-12 2:48 UTC (permalink / raw)
To: Eric Sandeen; +Cc: ext4 development
On Mon, Mar 01, 2010 at 01:53:09PM -0600, Eric Sandeen wrote:
> RH bug 569021 - mke2fs insists on user interaction even if stdin is not a tty and -F is passed
>
> This is just a warning, -F should easily override it.
>
> Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Applied to the maint branch.
- Ted
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mke2fs: skip alignment questioning if -F specified
2010-03-12 2:48 ` tytso
@ 2010-03-12 7:54 ` Andreas Dilger
2010-03-12 15:17 ` Eric Sandeen
0 siblings, 1 reply; 5+ messages in thread
From: Andreas Dilger @ 2010-03-12 7:54 UTC (permalink / raw)
To: tytso; +Cc: Eric Sandeen, ext4 development
On 2010-03-11, at 19:48, tytso@mit.edu wrote:
> On Mon, Mar 01, 2010 at 01:53:09PM -0600, Eric Sandeen wrote:
>> RH bug 569021 - mke2fs insists on user interaction even if stdin is
>> not a tty and -F is passed
>>
>> This is just a warning, -F should easily override it.
Since this is just a warning, do we really need to have "-F" at all?
I dislike requiring "-F" on common actions, because it means that it
will commonly be used, but may accidentally override some unintended
problem.
We've lived without block device alignment until now, and it seems
somewhat unpleasant that mke2fs may start failing (if -F is not given)
for situations where it previously worked just fine.
Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mke2fs: skip alignment questioning if -F specified
2010-03-12 7:54 ` Andreas Dilger
@ 2010-03-12 15:17 ` Eric Sandeen
2010-03-12 15:40 ` Theodore Tso
0 siblings, 1 reply; 5+ messages in thread
From: Eric Sandeen @ 2010-03-12 15:17 UTC (permalink / raw)
To: Andreas Dilger; +Cc: tytso, ext4 development
Andreas Dilger wrote:
> On 2010-03-11, at 19:48, tytso@mit.edu wrote:
>> On Mon, Mar 01, 2010 at 01:53:09PM -0600, Eric Sandeen wrote:
>>> RH bug 569021 - mke2fs insists on user interaction even if stdin is
>>> not a tty and -F is passed
>>>
>>> This is just a warning, -F should easily override it.
>
> Since this is just a warning, do we really need to have "-F" at all? I
> dislike requiring "-F" on common actions, because it means that it will
> commonly be used, but may accidentally override some unintended problem.
>
> We've lived without block device alignment until now, and it seems
> somewhat unpleasant that mke2fs may start failing (if -F is not given)
> for situations where it previously worked just fine.
Well, that's a good point, dropping the -F requirement is fine with me too,
I guess.
Ted do you want to just toss in:
- if (!force)
- proceed_question();
? I can send a patch but it may take longer for you to extract it from email ;)
-Eric
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mke2fs: skip alignment questioning if -F specified
2010-03-12 15:17 ` Eric Sandeen
@ 2010-03-12 15:40 ` Theodore Tso
0 siblings, 0 replies; 5+ messages in thread
From: Theodore Tso @ 2010-03-12 15:40 UTC (permalink / raw)
To: Eric Sandeen; +Cc: Andreas Dilger, ext4 development
On Mar 12, 2010, at 10:17 AM, Eric Sandeen wrote:
> Andreas Dilger wrote:
>> On 2010-03-11, at 19:48, tytso@mit.edu wrote:
>>> On Mon, Mar 01, 2010 at 01:53:09PM -0600, Eric Sandeen wrote:
>>>> RH bug 569021 - mke2fs insists on user interaction even if stdin is
>>>> not a tty and -F is passed
>>>>
>>>> This is just a warning, -F should easily override it.
>>
>> Since this is just a warning, do we really need to have "-F" at all? I
>> dislike requiring "-F" on common actions, because it means that it will
>> commonly be used, but may accidentally override some unintended problem.
>>
>> We've lived without block device alignment until now, and it seems
>> somewhat unpleasant that mke2fs may start failing (if -F is not given)
>> for situations where it previously worked just fine.
>
> Well, that's a good point, dropping the -F requirement is fine with me too,
> I guess.
>
> Ted do you want to just toss in:
>
> - if (!force)
> - proceed_question();
Yeah, I'll just make the change on my end.
-- Ted
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-03-12 15:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-01 19:53 [PATCH] mke2fs: skip alignment questioning if -F specified Eric Sandeen
2010-03-12 2:48 ` tytso
2010-03-12 7:54 ` Andreas Dilger
2010-03-12 15:17 ` Eric Sandeen
2010-03-12 15:40 ` Theodore Tso
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).