From cd34d5d163f6adfe68f195d2cfc93cb029a6e28e Mon Sep 17 00:00:00 2001 From: tappro Date: Thu, 17 Aug 2006 23:01:27 +0000 Subject: [PATCH] - store result code in thandle for last_rcvd update - add ldo_recovery_complete() method in lu_device to finish all post-recovery tasks --- lustre/include/dt_object.h | 1 + lustre/include/lu_object.h | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) 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 -- 1.8.3.1