Whamcloud - gitweb
LU-13440 utils: fix handling of lsa_stripe_off = -1 30/43530/11
authorAndreas Dilger <adilger@whamcloud.com>
Tue, 4 May 2021 01:25:23 +0000 (19:25 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 22 Jul 2021 01:49:09 +0000 (01:49 +0000)
commit1dbe63301b8c5cb7f7d0fe9960cafd3cd0e45534
tree59542007e6c321c92554752cb3e57894dc67f08b
parentf2a16793fa4316fc9ccdc46bcfe54f6b8d1e442b
LU-13440 utils: fix handling of lsa_stripe_off = -1

Use LMV_OFFSET_DEFAULT instead of "-1" for parsing lfs_setdirstripe()
since parse_targets() will return "(__u32)-1" to the caller for the
stripe index, but lsa_stripe_off is a signed long long so it is
interpreted as 4294967295.  This causes the parsing to fail when
"lfs setdirstripe -i -1 --max-inherit-rr 1" is used.

Update sanity test_413a/413c to also specify "-i -1" to verify this.

In sanity test 413a,413b and 413c, create "qos" directory on most
full directory, so that its subdirectories won't be created on the
same MDT.

Fixes: f167f78e3bfd ("LU-13440 lmv: add default LMV inherit depth")
Test-Parameters: trivial
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ic934f859173155b1b2df56fcd315c8da633ebbe5
Reviewed-on: https://review.whamcloud.com/43530
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity.sh
lustre/utils/lfs.c