summaryrefslogtreecommitdiffstats
path: root/src/ceph/qa/workunits/fs/misc/xattrs.sh
blob: fcd94d22c127e636c2123ca0224ec283af637239 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -x

set -e

touch file

setfattr -n user.foo -v foo file
setfattr -n user.bar -v bar file
setfattr -n user.empty file
getfattr -d file | grep foo
getfattr -d file | grep bar
getfattr -d file | grep empty

echo OK.