]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfs/122: fix sb_fname[XFSLABEL_MAX] in test
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 5 Jun 2018 16:43:02 +0000 (09:43 -0700)
committerEryu Guan <guaneryu@gmail.com>
Fri, 8 Jun 2018 06:11:56 +0000 (14:11 +0800)
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>
tests/xfs/122

index d836670156bac19b880c3b130b7929550449b56f..0de99b6da3ae7965e71e31065b38c0d377403a98 100755 (executable)
@@ -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