Whamcloud - gitweb
LU-14696 llite: check read only mount for setquota
[fs/lustre-release.git] / lustre / tests / sanity-quota.sh
index af8df2e..a0c987d 100755 (executable)
@@ -5061,6 +5061,15 @@ test_76() {
 }
 run_test 76 "project ID 4294967295 should be not allowed"
 
+test_77()
+{
+       mount_client $MOUNT2 "ro"
+       lfs setquota -u quota_usr -b 100M -B 100M -i 10K -I 10K $MOUNT2 &&
+               error "lfs setquota should fail in read-only Lustre mount"
+       umount $MOUNT2
+}
+run_test 77 "lfs setquota should fail in Lustre mount with 'ro'"
+
 quota_fini()
 {
        do_nodes $(comma_list $(nodes_list)) \