Thread (9 messages) 9 messages, 3 authors, 2016-02-25

Re: [PATCH 2/3] btrfs-progs: add 'du' command

From: David Sterba <hidden>
Date: 2016-02-25 09:26:07

On Thu, Feb 25, 2016 at 03:57:51AM -0500, Jérôme Poulin wrote:
On Wed, Jan 20, 2016 at 4:49 PM, Mark Fasheh [off-list ref] wrote:
quoted
'btrfs du' differs from regular du in that it will work to resolve which
blocks are shared between files in its list. This gives the user a more
accurate bytecount from which they can make decisions regarding management
of their file space.

Would it be a good idea for this new du to show the compressed file size too?
Yes, we're ware of the demand for that. IMO it's not necessary for the
initial implementation.
It was not made by me but I know I had this patch lying around, it
also does not compile right now but I could give it an update. The
wiki says this patch was "not merged yet" but I have no idea why it
was not since it was working correctly 2 years ago on my machine.
The patch looks familiar to me. The ioctl for compressed size approach
was abandoned in favor of extending FIEMAP. For the purposes of 'fi du'
we'll probably use the SEARCH_TREE ioctl and iterate the extents
manually.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help