generic/611: Use _getfattr instead of GETFATTR_PROG
authorYang Xu <xuyang2018.jy@cn.fujitsu.com>
Sun, 11 Oct 2020 05:51:35 +0000 (13:51 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 11 Oct 2020 08:22:14 +0000 (16:22 +0800)
commitab3df57e86594cc55d453c44d64a44745b2bbdf2
tree8b83d0a1e77d1b5e6bc423113960e6a677ada5de
parent6df280a684763501ce65bb2df5fc7742809f7600
generic/611: Use _getfattr instead of GETFATTR_PROG

When using old version(such as getfattr 2.4.46) getfattr command, it
has the following output,

touch file
setfattr -n user.a file
getfattr --absolute-names -n user.a file
user.a

on new getfattr, it reports the following output,
getfattr --absolute-names -n user.a file
user.a=""

The {=""} will break the golden image, so use _getfattr to filter
the redundant ="" at the end if it has.

Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/611
tests/generic/611.out