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 <mfasheh@xxxxxxx> wrote: > > '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. -- 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
