Whamcloud - gitweb
LU-9663 tests: replace “ls -s” with “stat -c '%s'” to get file size 61/27961/3
authorJian Yu <jian.yu@intel.com>
Fri, 7 Jul 2017 06:16:06 +0000 (23:16 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 19 Jul 2017 03:32:28 +0000 (03:32 +0000)
commit45b8c6cf6916cf012ad0512f9cf249c152b45236
treef3665e5a66c888711316a58db3dc8ad924b6429e
parentc245e87fad249622b1974dd64f3e497653269ee6
LU-9663 tests: replace “ls -s” with “stat -c '%s'” to get file size

This patch improves acl/2561{,_zfs}.test to use “stat -c '%s'” to
get file size instead of using “ls -s”, which prints the allocated
size of the file in blocks.

Test-Parameters: trivial \
envdefinitions=ONLY=103 \
mdtfilesystemtype=zfs ostfilesystemtype=zfs \
testlist=sanity

Change-Id: I8bfea5197102baeece244e20731c90172c5cc2f1
Signed-off-by: Jian Yu <jian.yu@intel.com>
Reviewed-on: https://review.whamcloud.com/27961
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
lustre/tests/acl/2561.test
lustre/tests/acl/2561_zfs.test
lustre/tests/acl/run