diff mbox series

[2/4] xfs/021: adjust for short parent pointers with hashes

Message ID 167657885005.3481738.10589861682942722453.stgit@magnolia (mailing list archive)
State New, archived
Headers show
Series [1/4] misc: adjust for parent pointers with namehashes | expand

Commit Message

Darrick J. Wong Feb. 16, 2023, 9:17 p.m. UTC
From: Darrick J. Wong <djwong@kernel.org>

Adjust this again to handle shortened namehashes.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
---
 tests/xfs/021.out.parent |   20 ++++++++++----------
 tests/xfs/122.out        |    2 +-
 2 files changed, 11 insertions(+), 11 deletions(-)
diff mbox series

Patch

diff --git a/tests/xfs/021.out.parent b/tests/xfs/021.out.parent
index e7ed72fc27..837b17ffdf 100644
--- a/tests/xfs/021.out.parent
+++ b/tests/xfs/021.out.parent
@@ -19,9 +19,9 @@  size of attr value = 65536
 
 *** unmount FS
 *** dump attributes (1)
-a.sfattr.hdr.totsize = 113
+a.sfattr.hdr.totsize = 59
 a.sfattr.hdr.count = 3
-a.sfattr.list[0].namelen = 76
+a.sfattr.list[0].namelen = 22
 a.sfattr.list[0].valuelen = 10
 a.sfattr.list[0].root = 0
 a.sfattr.list[0].value = "testfile.1"
@@ -40,7 +40,7 @@  hdr.info.forw = 0
 hdr.info.back = 0
 hdr.info.magic = 0xfbee
 hdr.count = 4
-hdr.usedbytes = 144
+hdr.usedbytes = 88
 hdr.firstused = FIRSTUSED
 hdr.holes = 0
 hdr.freemap[0-2] = [base,size] [FREEMAP..]
@@ -53,12 +53,12 @@  nvlist[1].valueblk = 0x1
 nvlist[1].valuelen = 65535
 nvlist[1].namelen = 2
 nvlist[1].name = "a3"
-nvlist[2].valuelen = 10
-nvlist[2].namelen = 76
-nvlist[2].value = "testfile.2"
-nvlist[3].valuelen = 8
-nvlist[3].namelen = 7
-nvlist[3].name = "a2-----"
-nvlist[3].value = "value_2\d"
+nvlist[2].valuelen = 8
+nvlist[2].namelen = 7
+nvlist[2].name = "a2-----"
+nvlist[2].value = "value_2\d"
+nvlist[3].valuelen = 10
+nvlist[3].namelen = 22
+nvlist[3].value = "testfile.2"
 *** done
 *** unmount
diff --git a/tests/xfs/122.out b/tests/xfs/122.out
index 97be93274e..5233aaad5f 100644
--- a/tests/xfs/122.out
+++ b/tests/xfs/122.out
@@ -110,7 +110,7 @@  sizeof(struct xfs_log_dinode) = 176
 sizeof(struct xfs_log_legacy_timestamp) = 8
 sizeof(struct xfs_map_extent) = 32
 sizeof(struct xfs_parent_name_irec) = 96
-sizeof(struct xfs_parent_name_rec) = 76
+sizeof(struct xfs_parent_name_rec) = 12
 sizeof(struct xfs_parent_ptr) = 280
 sizeof(struct xfs_phys_extent) = 16
 sizeof(struct xfs_pptr_info) = 104