From: Josef Bacik <jbacik@redhat.com>
To: linux-ext4@vger.kernel.org
Subject: [RFC] FIEMAP on ext3
Date: Wed, 16 Apr 2008 15:10:30 -0400 [thread overview]
Message-ID: <20080416191030.GE15668@unused.rdu.redhat.com> (raw)
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
next reply other threads:[~2008-04-16 19:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-16 19:10 Josef Bacik [this message]
2008-04-16 19:29 ` [RFC] FIEMAP on ext3 Eric Sandeen
2008-04-17 3:40 ` Andreas Dilger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080416191030.GE15668@unused.rdu.redhat.com \
--to=jbacik@redhat.com \
--cc=linux-ext4@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox