public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] FIEMAP on ext3
@ 2008-04-16 19:10 Josef Bacik
  2008-04-16 19:29 ` Eric Sandeen
  0 siblings, 1 reply; 3+ messages in thread
From: Josef Bacik @ 2008-04-16 19:10 UTC (permalink / raw)
  To: linux-ext4

Hello,

Obviously ext3 doesn't have extents, however it would still be usefull to use it
on sparse files in order to find data/holes within a file.  What I'm thinking is
treat contigous allocated blocks as an extent, and contiguous non-allocated
blocks as extents.  So for example, with Eric's fiemap test program, on a normal
non-sparse file you would only see one large extent for the entire file.  In the
case of a file that has data, hole and then data you would see 3 extents, two
for the two spans of data and one for the span of holes.
FIEMAP_FLAG_NUM_EXTENTS would in that case return 3.  Does this sound like an
acceptable thing to do?  If not, are there any other suggestions on how to do
fiemap in ext3?  Thanks much,

Josef

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

end of thread, other threads:[~2008-04-17  3:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-16 19:10 [RFC] FIEMAP on ext3 Josef Bacik
2008-04-16 19:29 ` Eric Sandeen
2008-04-17  3:40   ` Andreas Dilger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox