* [PATCH 3/3] libext2fs: pick out UNINIT-EXTENT block
@ 2011-01-30 6:28 hao.bigrat
2011-05-31 23:56 ` [3/3] " Ted Ts'o
0 siblings, 1 reply; 2+ messages in thread
From: hao.bigrat @ 2011-01-30 6:28 UTC (permalink / raw)
To: linux-ext4; +Cc: Robin Dong, Andreas Dilger, Theodore Tso
From: Robin Dong <sanbai@taobao.com>
for display UNINIT-EXTENT block usage in dumpe2fs, modify
ext2fs_block_iterate3 to distinguish between uninitial extent
block and normal extent block
Signed-off-by: Robing Dong <sanbai@taobao.com>
---
lib/ext2fs/block.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/ext2fs/block.c b/lib/ext2fs/block.c
index 0e4ec77..c7a60da 100644
--- a/lib/ext2fs/block.c
+++ b/lib/ext2fs/block.c
@@ -458,7 +458,7 @@ errcode_t ext2fs_block_iterate3(ext2_filsys fs,
blk++, blockcnt++, j++) {
new_blk = blk;
r = (*ctx.func)(fs, &new_blk, blockcnt,
- 0, 0, priv_data);
+ extent.e_flags, 0, priv_data);
ret |= r;
check_for_ro_violation_goto(&ctx, ret,
extent_errout);
--
1.7.3.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [3/3] libext2fs: pick out UNINIT-EXTENT block
2011-01-30 6:28 [PATCH 3/3] libext2fs: pick out UNINIT-EXTENT block hao.bigrat
@ 2011-05-31 23:56 ` Ted Ts'o
0 siblings, 0 replies; 2+ messages in thread
From: Ted Ts'o @ 2011-05-31 23:56 UTC (permalink / raw)
To: Robin Dong; +Cc: linux-ext4, Robin Dong, Andreas Dilger, Theodore Tso
On Sat, Jan 29, 2011 at 08:28:34PM -0000, Robin Dong wrote:
> From: Robin Dong <sanbai@taobao.com>
>
> for display UNINIT-EXTENT block usage in dumpe2fs, modify
> ext2fs_block_iterate3 to distinguish between uninitial extent
> block and normal extent block
>
> Signed-off-by: Robing Dong <sanbai@taobao.com>
>
> ---
> lib/ext2fs/block.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/lib/ext2fs/block.c b/lib/ext2fs/block.c
> index 0e4ec77..c7a60da 100644
> --- a/lib/ext2fs/block.c
> +++ b/lib/ext2fs/block.c
> @@ -458,7 +458,7 @@ errcode_t ext2fs_block_iterate3(ext2_filsys fs,
> blk++, blockcnt++, j++) {
> new_blk = blk;
> r = (*ctx.func)(fs, &new_blk, blockcnt,
> - 0, 0, priv_data);
> + extent.e_flags, 0, priv_data);
Apologies for not getting back to this earlier, but I don't want to
overload the ref_blk field, since it will have a very different
meaning for extent-mapped and files mapped using the traditional
indirect block scheme. This could potentially confuse callers who
don't know about extents.
Programs that want to find out about the uninitialized extent flag,
should use the extent iterator functions.
As far as the other patches in this series, I'm concerned that
dumpe2fs -s is going to confuse users more than anything else.
- Ted
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-01 2:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-30 6:28 [PATCH 3/3] libext2fs: pick out UNINIT-EXTENT block hao.bigrat
2011-05-31 23:56 ` [3/3] " Ted Ts'o
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).