Whamcloud - gitweb
LU-8900 snapshot: simulate readonly device
[fs/lustre-release.git] / lustre / target / out_handler.c
index 1cf8c21..f633fef 100644 (file)
@@ -1109,6 +1109,9 @@ int out_handle(struct tgt_session_info *tsi)
                                                     out_reconstruct, reply,
                                                     reply_index))
                                        GOTO(next, rc = 0);
+
+                               if (dt->dd_rdonly)
+                                       GOTO(next, rc = -EROFS);
                        }
 
                        /* start transaction for modification RPC only */