bug-coreutils
[Top][All Lists]
Advanced

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

bug#60335: du should warn about btrfs


From: Paul Eggert
Subject: bug#60335: du should warn about btrfs
Date: Mon, 26 Dec 2022 10:42:27 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 12/26/22 00:55, Krzysztof ┼╗elechowski wrote:
The total reported on my
system is almost twice the volume capacity.  This is unexpected and should be
indicated with a warning, both in the output and in the documentation.

Although we can document the issue, I don't think a warning is needed. Nor is it implementable, since there's no reliable way to know whether copy-on-write, compression, etc. are affecting the numbers the operating system is reporting.

Perhaps in some distant future the kernel, Btrfs, ZFS etc. can find a way to report underlying space usage in a better way. For example, if CoW is being used for a page they might divide the page's size by the number of times it's used. Whatever. In the meantime the best we can do is document the issue, which I've attempted to do by installing the attached patch.

Thanks for reporting the problem.

Attachment: 0001-doc-improve-doc-of-du-with-CoW-etc.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]