Whamcloud - gitweb
LU-12037 mdt: add option for cross-MDT rename
[fs/lustre-release.git] / lustre / mdt / mdt_internal.h
index 5bf811f..b0f4430 100644 (file)
@@ -251,7 +251,9 @@ struct mdt_device {
                                   mdt_enable_remote_dir:1,
                                   mdt_enable_striped_dir:1,
                                   mdt_enable_dir_migration:1,
-                                  mdt_skip_lfsck:1;
+                                  mdt_enable_remote_rename:1,
+                                  mdt_skip_lfsck:1,
+                                  mdt_readonly:1;
 
                                   /* user with gid can create remote/striped
                                    * dir, and set default dir stripe */
@@ -897,6 +899,8 @@ int mdt_links_read(struct mdt_thread_info *info,
                   struct linkea_data *ldata);
 int mdt_close_internal(struct mdt_thread_info *info, struct ptlrpc_request *req,
                       struct mdt_body *repbody);
+void mdt_pack_secctx_in_reply(struct mdt_thread_info *info,
+                             struct mdt_object *child);
 
 static inline struct mdt_device *mdt_dev(struct lu_device *d)
 {
@@ -1089,10 +1093,9 @@ static inline struct mdt_device *mdt_exp2dev(struct obd_export *exp)
 
 static inline bool mdt_rdonly(struct obd_export *exp)
 {
-       if (exp_connect_flags(exp) & OBD_CONNECT_RDONLY ||
-           mdt_exp2dev(exp)->mdt_bottom->dd_rdonly)
-               return true;
-       return false;
+       return (exp_connect_flags(exp) & OBD_CONNECT_RDONLY ||
+               mdt_exp2dev(exp)->mdt_bottom->dd_rdonly ||
+               mdt_exp2dev(exp)->mdt_readonly);
 }
 
 typedef void (*mdt_reconstruct_t)(struct mdt_thread_info *mti,