Re: btrfs-progs and btrfs(8) inconsistencies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 4, 2016 at 2:33 AM, Qu Wenruo <quwenruo@xxxxxxxxxxxxxx> wrote:
>
>
> Moviuro wrote on 2016/02/03 22:54 +0100:
>>
>> Hi all,
>>
>> ...
>>
>> # btrfs subvolume create foo # should be silent
>> # btrfs subvolume create -v foo
>> /absolute/path/foo
>> # btrfs subvolume create [--details|-vv] foo
>> PATH:/absolute/path/foo
>> UUID:082df386-98c2-44d9-9012-07fb2b22ea20
>> [And whatnot]
>
>
> The idea itself makes a lot of sense.
> But I have at least two things to worry about:
>
> 1) Old scripts backward compatibility
>    Especially xfstests. Maintainer will hate it a lot.
>    As we have changed it several times and broken existing test cases.
Right now, I can think of the following:
- add a "backward-compatibility switch", like -o|--old, which would
have no effect on the output on version 4.X.
- add a "use the new behavior switch", like -n|--new, which would have
no effect starting with the next big release (5.X)

>    Although personally I like to let all the backward compatibility
>    things go hell, but that's definitely not how things work. :(
>
> 2) End-user taste.
>    Some end-users like such info as feedback of success.
>    Of course other users like it act as silent as possible.
I'm pretty sure that's... not the case. Almost everything on GNU/Linux
is silent. cd(1) is silent, cp(1) is silent, rm(1)...
What they all have though is a -v|--verbose switch.

>>
>> That's a first example. Same should go for all the commands. I have no
>> idea
>> how/where we could share about good/bad outputs (Google Drive? Framapad?
>> git[hub|lab]?)
>
>
> Maybe it's overkilling, but I like the idea to have a good example about how
> CLI interface should be designed.
> But it may be harder for all developer/reviewer to follow that restrict
> example.
>
> And even more, I hope there will be a nice btrfs-progs CLI design guideline.
> (Although it's surely overkilling)
What kind of format do you think we should write this in? drop a
stylesheet.md in the repo?

> Thanks,
> Qu
>> Then come inconsistencies: compare the outputs of
>> ...
>
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux