mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfs/122: fix sb_fname[XFSLABEL_MAX] in test
We recently redefined sb_fname's array length to use a symbolic constant instead of a magic number, so update this test accordingly. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
committed by
Eryu Guan
parent
dcc690e862
commit
65022a47fc
@@ -218,6 +218,7 @@ cat /usr/include/xfs/xfs*.h | indent |\
|
||||
awk '
|
||||
/typedef struct xfs_sb/ { structon = 1; next }
|
||||
structon && $2 ~ /^sb_/ { sub(/[;,]/,"",$2)
|
||||
sub(/XFSLABEL_MAX/,"12",$2)
|
||||
printf("printf(\"offsetof(xfs_sb_t, %s) = \\%zu\\n\", offsetof(xfs_sb_t, %s));", $2, $2); next}
|
||||
structon && /}/ { structon = 0; next}
|
||||
'>>$cprog
|
||||
|
||||
Reference in New Issue
Block a user