lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1296368914-14079-1-git-send-email-hao.bigrat@gmail.com>
Date:	Sun, 30 Jan 2011 14:28:34 +0800
From:	hao.bigrat@...il.com
To:	linux-ext4@...r.kernel.org
Cc:	Robin Dong <sanbai@...bao.com>, Andreas Dilger <adilger@...ger.ca>,
	Theodore Tso <tytso@...gle.com>
Subject: [PATCH 3/3] libext2fs: pick out UNINIT-EXTENT block

From: Robin Dong <sanbai@...bao.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@...bao.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

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ