Skip to contentSkip to conversation

xfs/122: reduce xfs_dsb_t size

PATCH In review Darrick J. Wong 3 participants 4 messages Jan 24, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfs/122: reduce xfs_dsb_t size

We're not going to do reverse-mapping on the realtime device for some time, so let's fix xfs/122 in the meantime.

---
 tests/xfs/122.out |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/xfs/122.out +1 -1
index 67f7698..168cfd5 100644
@@ -138,7 +138,7 @@ sizeof(xfs_dir2_sf_off_t) = 2
 sizeof(xfs_disk_dquot_t) = 104
 sizeof(xfs_dq_logformat_t) = 24
 sizeof(xfs_dqblk_t) = 136
-sizeof(xfs_dsb_t) = 272
+sizeof(xfs_dsb_t) = 264
 sizeof(xfs_efd_log_format_32_t) = 28
 sizeof(xfs_efd_log_format_64_t) = 32
 sizeof(xfs_efi_log_format_32_t) = 28
#2 lore raw
Quoted 9 lines · Christoph Hellwig
Quoted 4 lines · Darrick J. Wong

We're not going to do reverse-mapping on the realtime device for some time, so let's fix xfs/122 in the meantime.

Looks fine,

Philosophically (I'm good at that) how do we handle tests like this that really only work on the latest version of the code, but don't actually indicate a bug if it fails on something older?

-Eric

#3 lore raw
Quoted 3 lines · Eric Sandeen

Philosophically (I'm good at that) how do we handle tests like this that really only work on the latest version of the code, but don't actually indicate a bug if it fails on something older?

That might be another argument for doing the smaller than check that Darrick suggested. Or an argument for simply stopping to check xfs_dsb, it's growing constantly. Checking the offsets of known fields IFF present wold seem more useful.