Re: [PATCH 1/1] btrfs-progs: fi usage: implement raid56

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

 



On 18/03/2019 20.12, Stéphane Lesimple wrote:
> Le 2019-03-17 19:41, Goffredo Baroncelli a écrit :
>> On 17/03/2019 13.51, stephane_btrfs@xxxxxxxxxxx wrote:
>> [...]
>>> -        if (!ratio)
>>> -            warning("RAID56 detected, not implemented");
>>> -
>>
>> IIRC one of the problem which lead to this code was that the not root
>> user cannot
>> access to chunkinfo. So the (regular) user should be warned about
>> that: the printed info may be not correct.
> 
> 
> I think you may be referencing this other warning:
> 
>         ret = load_chunk_info(fd, chunkinfo, chunkcount);
>         if (ret == -EPERM) {
>                 warning("cannot read detailed chunk info, per-device usage will not be shown, run as root");
> 
> This one is still present, and matches exactly what you say:
> it fires when btrfs fi usage is run under a non-root user.

Perfect ! I missed this part

BR
G.Baroncelli

> 
> The "RAID56 detected, not implemented" warning, on the other hand,
> is displayed even under the root user, and indicates that it's normal
> that most of the counters of "filesystem usage" are at zero, because
> the code to compute these properly under raid5/raid6 isn't there yet,
> and it's actually precisely this missing feature that my patch tries to add!
> 
> Thanks,
> 
> Stéphane.
> 


-- 
gpg @keyserver.linux.it: Goffredo Baroncelli <kreijackATinwind.it>
Key fingerprint BBF5 1610 0B64 DAC6 5F7D  17B2 0EDA 9B37 8B82 E0B5



[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