}
run_test 103a "acl test ========================================="
-test_103b() {
- remote_mds_nodsh && skip "remote MDS with nodsh" && return
- local noacl=false
- local MDT_DEV=$(mdsdevname ${SINGLEMDS//mds/})
- local mountopts=$MDS_MOUNT_OPTS
-
- if [[ "$MDS_MOUNT_OPTS" =~ "noacl" ]]; then
- noacl=true
- else
- # stop the MDT
- stop $SINGLEMDS || error "failed to stop MDT."
- # remount the MDT
- if [ -z "$MDS_MOUNT_OPTS" ]; then
- MDS_MOUNT_OPTS="-o noacl"
- else
- MDS_MOUNT_OPTS="${MDS_MOUNT_OPTS},noacl"
- fi
- start $SINGLEMDS $MDT_DEV $MDS_MOUNT_OPTS ||
- error "failed to start MDT."
- MDS_MOUNT_OPTS=$mountopts
- fi
-
- touch $DIR/$tfile
- setfacl -m u:bin:rw $DIR/$tfile && error "setfacl should fail"
-
- if ! $noacl; then
- # stop the MDT
- stop $SINGLEMDS || error "failed to stop MDT."
- # remount the MDT
- start $SINGLEMDS $MDT_DEV $MDS_MOUNT_OPTS ||
- error "failed to start MDT."
- fi
-
- true
-}
-run_test 103b "MDS mount option 'noacl'"
-
test_103c() {
mkdir -p $DIR/$tdir
cp -rp $DIR/$tdir $DIR/$tdir.bak