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>
LU-4704 test: enable acl 974 and 2561 series test Add acl/{974,974_remote,2561,2561_zfs}.test to the lustre/tests/Makefile.am nobase_noinst_DATA list, and fix acl/run test to fail if the test scripts are missing. acl/2561_zfs.test is a newly created test file for zfs. Since zfs allocates a 512 byte dnode for empty file, its "ls -s" result is different from ldiskfs'. Signed-off-by: Emoly Liu <emoly.liu@intel.com> Change-Id: I11be072eb1954fff3b7a19231b82345b3073a534 Reviewed-on: http://review.whamcloud.com/9541 Tested-by: Jenkins Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Tested-by: Andreas Dilger <andreas.dilger@intel.com> Reviewed-by: Lai Siyao <lai.siyao@intel.com> Reviewed-by: Jian Yu <jian.yu@intel.com>
LU-2804 mdd: move ACL mode handling to MDD Move ACL mode handling from OSD to MDD, so both ldiskfs and zfs can be set mode correctly, and also by this, it can avoid to transfer the local mask to the remote MDT for fixing the mode. Move sanity 103 out of sanity SLOW list, so it can be run in the normal review/landing check, so to avoid regression about ACL. And also it only take 15 seconds in my local VM run, which probably not be put to the SLOW list at all. Signed-off-by: wang di <di.wang@intel.com> Change-Id: I73146425baa7d8b712ce46e18955ecaa2a3fd9a4 Reviewed-on: http://review.whamcloud.com/5421 Tested-by: Hudson Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com> Reviewed-by: Lai Siyao <lai.siyao@intel.com> Reviewed-by: Nathaniel Clark <nathaniel.l.clark@intel.com> Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
LU-2561 mdd: create decares attr set with parent attr mdd_declare_create() mistakenly declares attr set for child with parent attr, as will cause truncate operation. Signed-off-by: Lai Siyao <lai.siyao@intel.com> Change-Id: I79dbbb2b52e1d41aaa70c36ce6c197ab2cd684d8 Reviewed-on: http://review.whamcloud.com/4956 Reviewed-by: Prakash Surya <surya1@llnl.gov> Tested-by: Hudson Reviewed-by: Bobi Jam <bobijam@gmail.com> Tested-by: Maloo <whamcloud.maloo@gmail.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>