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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180504070923.45140-4-c17828@cray.com>
Date:   Fri,  4 May 2018 10:09:19 +0300
From:   c17828 <artem.blagodarenko@...il.com>
To:     linux-ext4@...r.kernel.org
Cc:     adilger.kernel@...ger.ca,
        Artem Blagodarenko <artem.blagodarenko@...il.com>
Subject: [PATCH v4 3/7] debugfs: 64bit inode support

From: Artem Blagodarenko <artem.blagodarenko@...il.com>

New dirdata type EXT2_DIRENT_INODE is added.

Lustre-bug: https://jira.hpdd.intel.com/browse/LU-9309
Signed-off-by: Artem Blagodarenko <artem.blagodarenko@...il.com>
Reviewed-by: Andreas Dilger <adilger@...ger.ca>
---
 debugfs/ls.c         | 4 +++-
 lib/ext2fs/ext2_fs.h | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debugfs/ls.c b/debugfs/ls.c
index 082c14b9..bed4ad44 100644
--- a/debugfs/ls.c
+++ b/debugfs/ls.c
@@ -87,7 +87,9 @@ static void list_dirdata(struct list_dir_struct *ls,
 
 		dlen = data[0];
 
-		if (dirdata_mask == EXT2_DIRENT_LUFID) {
+		if (dirdata_mask == EXT2_DIRENT_INODE) {
+			fprintf(ls->f, "ino64:%04\n", *(__u32 *)(data + 1));
+		} else if (dirdata_mask == EXT2_DIRENT_LUFID) {
 			struct lu_fid *fid = (struct lu_fid *)(data + 1);
 
 			fid_be_to_cpu(fid, fid);
diff --git a/lib/ext2fs/ext2_fs.h b/lib/ext2fs/ext2_fs.h
index 4919f946..4681a216 100644
--- a/lib/ext2fs/ext2_fs.h
+++ b/lib/ext2fs/ext2_fs.h
@@ -1041,6 +1041,7 @@ struct ext2_dir_entry_tail {
 /* lu_fid size and NUL char */
 #define EXT2_DIRENT_LUFID_SIZE		16
 #define EXT2_DIRENT_LUFID		0x10
+#define EXT2_DIRENT_INODE		0x20
 
 /*
  * Constants for ext4's extended time encoding
-- 
2.14.3 (Apple Git-98)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ