Re: [RFC PATCH 0/3] btrfs-progs: make quiet to overrule verbose

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

 



On Wed, Oct 30, 2019 at 03:42:56AM +0800, Anand Jain wrote:
> >>>    Question: command -v -q -v should be equal to command -v, right?
> >>
> >> No, that would be equivalent to the default level:
> >>
> >> verbose starts with 1            ()
> >> verbose++                (-v)
> >> verbose = 0                (-q)
> >> verbose++ is now 1, which is not -v    ()
> >>
> > 
> > Oh I was thinking its a bug, and no need to carry forward to the global
> > verbose. Will make it look like this.
> 
> What do you think should be the final %verbose value when both
> local and global verbose and or quiet options are specified?
> 
> For example:
>   btrfs -v -q sub-command -v
>   btrfs -q sub-command -v
>   btrfs -vv sub-command -q
>   etc..

Ah that's the conflicting part. I'd say treat all -v and -q equal, so
modify the bconf.verbose variable, and it's straightforward to document.
Some time in the future we should also issue a warning for 'sub-command
-v'.

The order makes it unintuitive so

  btrfs -q command -v

is going to be the default verbosity. We can't ignore the sub-command
part, and making it conditionally work in case there's no global
verbosity setting is kind of complicating it.

So let's take the simple approach, maybe we'll have second thought on
that before release.



[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