Whamcloud - gitweb
- store result code in thandle for last_rcvd update
authortappro <tappro>
Thu, 17 Aug 2006 23:01:27 +0000 (23:01 +0000)
committertappro <tappro>
Thu, 17 Aug 2006 23:01:27 +0000 (23:01 +0000)
- add ldo_recovery_complete() method in lu_device to finish all post-recovery
  tasks

lustre/include/dt_object.h
lustre/include/lu_object.h

index dd06458..03ea95b 100644 (file)
@@ -369,6 +369,7 @@ struct txn_param {
 struct thandle {
         struct dt_device *th_dev;
         struct lu_context th_ctx;
+        __s32             th_result;
 };
 
 /*
index c05e471..4b569ef 100644 (file)
@@ -138,8 +138,10 @@ struct lu_device_operations {
         /*
          * process config specific for device
          */
-        int  (*ldo_process_config)(const struct lu_context *ctx,
-                                   struct lu_device *, struct lustre_cfg *);
+        int (*ldo_process_config)(const struct lu_context *ctx,
+                                  struct lu_device *, struct lustre_cfg *);
+        int (*ldo_recovery_complete)(const struct lu_context *,
+                                     struct lu_device *);
 
 };
 
@@ -293,8 +295,8 @@ struct lu_device_type_operations {
         /*
          * Free device. Dual to ->ldto_device_alloc().
          */
-        void (*ldto_device_free)(const struct lu_context *ctx,
-                                 struct lu_device *d);
+        void (*ldto_device_free)(const struct lu_context *,
+                                 struct lu_device *);
 
         /*
          * Initialize the devices after allocation