summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadek Podgorny <radek@podgorny.cz>2014-03-20 19:17:26 +0100
committerRadek Podgorny <radek@podgorny.cz>2014-03-20 19:17:26 +0100
commita9315f19e6416bf9421c1d18813dff6f5eeaceee (patch)
tree22c90d8a28a75cb321296cbdb67cc1089e98de10
parent478388ac1232c54347d0e3a8c31203e10f574f1b (diff)
downloadunionfs-fuse-a9315f19e6416bf9421c1d18813dff6f5eeaceee.tar.gz
add test for xattr of stats
-rwxr-xr-xtest.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/test.sh b/test.sh
index 0115d53..65251ca 100755
--- a/test.sh
+++ b/test.sh
@@ -9,7 +9,7 @@ echo v1 > original/file
echo v1 > original/play-with-me
echo v1 > original/delete-me
-src/unionfs -d -o cow working-copy=rw:original=ro union >unionfs.log 2>&1 &
+src/unionfs -d -o cow,stats working-copy=rw:original=ro union >unionfs.log 2>&1 &
trap 'if [ "$(ls union)" ]; then fusermount -u union; fi; rm -rf union original working-copy' EXIT
sleep 1
@@ -80,6 +80,15 @@ fi
set -e
+set +e
+set +v
+getfattr union/stats
+if [ $? -eq 0 ]; then
+ echo "getfattr did not fail for stats, that's weird"
+ rc=$?
+fi
+set -e
+
fusermount -u union