From: Zdenek Kabelac <zkabelac@redhat.com>
To: lvm-devel@redhat.com
Subject: [PATCH v3 13/18] fsadm: remove -y (YES) option
Date: Mon, 03 Oct 2011 20:18:03 +0200 [thread overview]
Message-ID: <4E89FC5B.2040101@redhat.com> (raw)
In-Reply-To: <alpine.LFD.2.00.1110031821120.4447@dhcp-27-109.brq.redhat.com>
Dne 3.10.2011 18:39, Lukas Czerner napsal(a):
> On Tue, 27 Sep 2011, Zdenek Kabelac wrote:
>
>> Dne 27.9.2011 15:42, Lukas Czerner napsal(a):
>>> There is some confusion in using -y (YES) and -f (FORCE) options in
>>> fsadm. In some cases we are asked for yes/no question which can be
>>> override by -f option, but not by -y option. Usually most of the questions
>>> tools ask for are yes/no and it can be overridden by forcing it with -f
>>> (e.g. fsck.(extN|xfs), lvm and others...) so it make sense to get rid of
>>> -y option and use only -f instead.
>>>
>>> Also I do not think it is wise to use -y option in fsck.extN since
>>> people using fsadm would probably not know how it works, so we should
>>> NOT provide them with that option, but rather let them use "real" fsck
>>> instead (and let them read man page if needed). Also running fsck with
>>> -y when you have corrupted file system is probably not a good idea from
>>> multiple reasons. This is also fixed by this commit.
>>>
>>> This commit removes '-y' option and use '-f' instead. With exception of
>>> fsck.
>>>
>>
>> NACK
>>
>> -f and -y are different.
>>
>> While fsck will proceed with -f on mounted file system (leading to certain
>> damage) -y option will stop here and just answer -y to question about umount.
>
> I am not saying that -f should be used instead of -y.
>
> That is why having both options for the fsadm does not make sense,
> because it is not just fsck which fsadm is using internally. Force means
> force, we are trying to simplify things here not map every argument of
> every tool into fsadm.
>
> When user force things, he should know what is he doing, since he really
> is using "force" :). -f option is quite generic and most of the tools
> does have it, however -y options is specific, that is why fsadm does not
> have -n option, or even -p option.
>
> Generally I am in favour of changing check command to only check for
> file system consistency and if problems are found report to the user
> that he should run proper fsck by itself, since it is a bit delicate
> situation and the user should really know what is he doing if he does
> not want to lose data.
>
> Finally I think that having both '-f' and '-y' option which are really
> inconsistent among the tools does not make sense.
Well think more about the difference between -y and -f.
If something does not make sense to you, the first solution is to remove it,
the second (harder) is to try to think about it deeply and try to understand
for multiple reasons of this NACK - and from your other thread replies, it
also applies to your other 'does not make sense to me' comments...
Zdenek
next prev parent reply other threads:[~2011-10-03 18:18 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-27 13:42 [RFC][PATCH v3 00/16] fsadm update Lukas Czerner
2011-09-27 13:42 ` [PATCH v3 01/18] fsadm: Add new commands create, list, add and remove Lukas Czerner
2011-10-04 9:41 ` Zdenek Kabelac
2011-10-04 12:13 ` Lukas Czerner
2011-10-04 17:09 ` Zdenek Kabelac
2011-10-05 8:02 ` Lukas Czerner
2011-10-05 9:06 ` Zdenek Kabelac
2011-10-05 9:46 ` Lukas Czerner
2011-10-05 10:27 ` Alasdair G Kergon
2011-10-05 11:21 ` Lukas Czerner
2011-10-05 11:26 ` Lukas Czerner
2011-10-05 11:28 ` Ric Wheeler
2011-10-05 11:49 ` Alasdair G Kergon
2011-10-05 12:15 ` Lukas Czerner
2011-09-27 13:42 ` [PATCH v3 02/18] fsadm: Make all internal math in kilobytes Lukas Czerner
2011-09-27 15:41 ` Zdenek Kabelac
2011-10-03 16:13 ` Lukas Czerner
2011-09-27 13:42 ` [PATCH v3 03/18] fsadm: Add simple configuration file Lukas Czerner
2011-09-27 15:39 ` Zdenek Kabelac
2011-10-03 16:44 ` Lukas Czerner
2011-09-27 13:42 ` [PATCH v3 04/18] fsadm: Use DEFAULT_DEVICE_POOL when creating volume group Lukas Czerner
2011-09-27 13:42 ` [PATCH v3 05/18] fsadm: Add LVOL_PREFIX configuration option Lukas Czerner
2011-09-27 13:42 ` [PATCH v3 06/18] fsadm: Fsck extN before resize only if it is not mounted Lukas Czerner
2011-10-04 8:09 ` Zdenek Kabelac
2011-09-27 13:42 ` [PATCH v3 07/18] fsadm: Only use readlink if link is provided Lukas Czerner
2011-09-27 13:42 ` [PATCH v3 08/18] fsadm: Remove unnecessary modification of PATH variable Lukas Czerner
2011-10-04 8:12 ` Zdenek Kabelac
2011-10-04 8:17 ` Lukas Czerner
2011-09-27 13:42 ` [PATCH v3 09/18] fsadm: Allow to specify lv in vg/lv format Lukas Czerner
2011-09-27 13:42 ` [PATCH v3 10/18] fsadm: Umount ext2 file system prior resize Lukas Czerner
2011-09-27 13:42 ` [PATCH v3 11/18] fsadm: Add help for new commands and update man page Lukas Czerner
2011-09-27 13:42 ` [PATCH v3 12/18] lvresize: Specify --resize-fs-only when going to use fsadm resize Lukas Czerner
2011-09-27 15:44 ` Zdenek Kabelac
2011-10-03 16:20 ` Lukas Czerner
2011-09-27 13:42 ` [PATCH v3 13/18] fsadm: remove -y (YES) option Lukas Czerner
2011-09-27 15:38 ` Zdenek Kabelac
2011-10-03 16:39 ` Lukas Czerner
2011-10-03 18:18 ` Zdenek Kabelac [this message]
2011-10-04 6:29 ` Lukas Czerner
2011-10-04 8:07 ` Zdenek Kabelac
2011-09-27 13:42 ` [PATCH v3 14/18] test: add helper to compute aligned lv size Lukas Czerner
2011-09-27 13:42 ` [PATCH v3 15/18] test: Add test for fsadm add command Lukas Czerner
2011-09-27 13:42 ` [PATCH v3 16/18] test: Add test for fsadm create command Lukas Czerner
2011-09-27 13:42 ` [PATCH v3 17/18] test: Add test for fsadm resize command Lukas Czerner
2011-09-27 13:42 ` [PATCH v3 18/18] test: Add test for fsadm remove command Lukas Czerner
2011-09-27 13:50 ` [RFC][PATCH v3 00/16] fsadm update Lukas Czerner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E89FC5B.2040101@redhat.com \
--to=zkabelac@redhat.com \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.