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 11:14 AM, Martin Steigerwald <martin@xxxxxxxxxxxx> wrote:
> Am Donnerstag, 4. Februar 2016, 09:57:54 CET schrieb Moviuro:
>> > 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.
>
> The various mkfs commands are not. Not one of them I know of. Additionally
> each one gives a different output.
>
> pvcreate, vgcreate, lvcreate and as well as the remove commands and probably
> other LVM commands are not (no one could argue, that from their ideas they
> come from HP/UX, but thats a Unix as well):
>
> merkaba:~> lvcreate -L 1G -n bla sata
>   Logical volume "bla" created.
>
> And I think, not testing right now, that also mdadm is not silent on creating
> a softraid.
>
> So while I agree with you that regular shell commands (coreutils, util-linux)
> are silent on success usually this does not appear to be the case with storage
> related commands in GNU/Linux.
To be perfectly honnest, my inspiration comes from zfs(8) on FreeBSD.
I'm pretty sure there is some inspiration we can find in its behavior.
(see https://www.freebsd.org/cgi/man.cgi?zfs(8) )
The output has both a human-readable form (using column(1)) and a
machine-parseable form (e.g. zfs get -o value used /zroot).
The output is limited to what is truly useful, etc.
I have not had any previous experience with any other FS or softraid
solutions, so I'm not familiar with those commands you gave, Martin.

Also, making silence a default option helps spare some typing:
>/dev/null : 11 char (force silence)
-v : 3 char (force verbose) (it's also far more readable)

I should start working on said guidelines.md later today or this weekend.

> I don´t have a clear oppinion about it other than I´d like to see some
> standard too. coreutils / util-linux both them to have some kind of standard,
> although not necessarily the same standard I bet. And I am not sure whether it
> is documented somewhere.
--
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