All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] fiemap: introduce EXTENT_DATA_COMPRESSED flag
@ 2013-09-03 12:11 David Sterba
  2013-09-03 12:11 ` [PATCH 1/3] fiemap: fix comment at EXTENT_DATA_ENCRYPTED David Sterba
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: David Sterba @ 2013-09-03 12:11 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: David Sterba, viro

The original FIEMAP patch did not define this bit, btrfs will make use of
it.  The defined constant maintains the same value as originally proposed.

Currently, the 'filefrag' utility has no way to recognize and denote a
compressed extent. As implemented in btrfs right now, the compression step
splits a big extent into smaller chunks and this is reported as a heavily
fragmented file. Adding the flag to filefrag will at least give some
explanation why, this has been confusing users for some time already.

David Sterba (3):
  fiemap: fix comment at EXTENT_DATA_ENCRYPTED
  fiemap: add EXTENT_DATA_COMPRESSED flag
  btrfs: set FIEMAP_EXTENT_DATA_COMPRESSED for compressed extents

 fs/btrfs/extent_io.c        |    4 +++-
 include/uapi/linux/fiemap.h |    4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

-- 
1.7.9


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-09-09 22:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-03 12:11 [PATCH 0/3] fiemap: introduce EXTENT_DATA_COMPRESSED flag David Sterba
2013-09-03 12:11 ` [PATCH 1/3] fiemap: fix comment at EXTENT_DATA_ENCRYPTED David Sterba
2013-09-03 12:11 ` [PATCH 2/3] fiemap: add EXTENT_DATA_COMPRESSED flag David Sterba
2013-09-06  5:28   ` Andreas Dilger
2013-09-09 22:06     ` David Sterba
2013-09-03 12:11 ` [PATCH 3/3] btrfs: set FIEMAP_EXTENT_DATA_COMPRESSED for compressed extents David Sterba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.