]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
ext4/018: Match the value of File ACL accurately
authorXiao Yang <yangx.jy@cn.fujitsu.com>
Tue, 7 May 2019 09:19:51 +0000 (17:19 +0800)
committerEryu Guan <guaneryu@gmail.com>
Thu, 9 May 2019 07:34:39 +0000 (15:34 +0800)
commit9820d643ea3730dbb2db3c6b9072c5231b71f303
tree775cbed73cfb83d4318012d37c1f83fd11c5dfa3
parentd349b37c113e4f8e975f960b703863b5119d8e71
ext4/018: Match the value of File ACL accurately

Since e2fsprogs v1.44.0, debugfs with stat command shows the output:
---------------------------------------------------------------------
debugfs -R 'stat /attrfile' /dev/sda11 2> /dev/null | grep 'File ACL:'
File ACL: 9258
---------------------------------------------------------------------

Before e2fsprogs v1.44.0, debugfs with stat command shows the output:
----------------------------------------------------------------------
debugfs -R 'stat /attrfile' /dev/sda11 2> /dev/null | grep 'File ACL:'
File ACL: 9258    Directory ACL: 0
----------------------------------------------------------------------

"Directory ACL: XXXX" was removed by commit 578fcbf so running ext4/018
with older e2fsprogs(i.e. before v1.44.0) got the following error:
--------------------------------------------------------------------------
+./tests/ext4/018: line 59: 9258    Directory ACL: 0: syntax error in expression (error token is "Directory ACL: 0")
--------------------------------------------------------------------------

we match the value of File ACL accurately to fix it.

Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/ext4/018