From: tappro Date: Thu, 17 Aug 2006 23:01:27 +0000 (+0000) Subject: - store result code in thandle for last_rcvd update X-Git-Tag: v1_8_0_110~486^2~1143 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=cd34d5d163f6adfe68f195d2cfc93cb029a6e28e;p=fs%2Flustre-release.git - store result code in thandle for last_rcvd update - add ldo_recovery_complete() method in lu_device to finish all post-recovery tasks --- diff --git a/lustre/include/dt_object.h b/lustre/include/dt_object.h index dd06458..03ea95b 100644 --- a/lustre/include/dt_object.h +++ b/lustre/include/dt_object.h @@ -369,6 +369,7 @@ struct txn_param { struct thandle { struct dt_device *th_dev; struct lu_context th_ctx; + __s32 th_result; }; /* diff --git a/lustre/include/lu_object.h b/lustre/include/lu_object.h index c05e471..4b569ef 100644 --- a/lustre/include/lu_object.h +++ b/lustre/include/lu_object.h @@ -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