Details
-
Bug
-
Resolution: Fixed
-
Minor
-
Lustre 2.7.0
-
None
Description
grow_xattr() { ... [ -z $(lctl get_param -n mdc.*.connect_flags | grep xattr) ] && skip "must have user_xattr" && return 0 .. }
string needs to be quoted to avoid syntax error on DNE setup:
mdscount=2 :
# lctl get_param mdc.*.connect_flags | grep xattr xattr xattr # find /proc/fs/lustre/ -name connect_flags | grep mdc /proc/fs/lustre/mdc/lustre-MDT0001-mdc-ffff88005a998000/connect_flags /proc/fs/lustre/mdc/lustre-MDT0000-mdc-ffff88005a998000/connect_flags
xtrace:
+ grow_xattr 65536 + local xsize=65536 + local file=/mnt/lustre/f102ha.sanity ++ grep xattr ++ lctl get_param -n 'mdc.*.connect_flags' + '[' -z xattr xattr ']' sanity.sh: line 6447: [: xattr: binary operator expected
mdscount=3 :
++ lctl get_param -n 'mdc.*.connect_flags' + '[' -z xattr xattr xattr ']' sanity.sh: line 6447: [: too many arguments