From: eeb Date: Fri, 23 May 2003 22:04:03 +0000 (+0000) Subject: * Added portals + lustre wire constant and struct size/offset assertions X-Git-Tag: v1_7_100~1^103~74 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=97bb5c7c5c1b12dbed66adacae06cd263fcecfc7;p=fs%2Flustre-release.git * Added portals + lustre wire constant and struct size/offset assertions * Added portals + lustre wirecheck programs to generate these assertions on the reference platform. --- diff --git a/lustre/ptlrpc/ptlrpc_internal.h b/lustre/ptlrpc/ptlrpc_internal.h index 9663934..7100707 100644 --- a/lustre/ptlrpc/ptlrpc_internal.h +++ b/lustre/ptlrpc/ptlrpc_internal.h @@ -39,6 +39,7 @@ int ptlrpc_get_ldlm_hooks(void); void ptlrpc_daemonize(void); int ptlrpc_request_handle_eviction(struct ptlrpc_request *); +void lustre_assert_wire_constants (void); void ptlrpc_lprocfs_register_service(struct obd_device *obddev, struct ptlrpc_service *svc); diff --git a/lustre/ptlrpc/ptlrpc_module.c b/lustre/ptlrpc/ptlrpc_module.c index 1a7e15b..85925eb 100644 --- a/lustre/ptlrpc/ptlrpc_module.c +++ b/lustre/ptlrpc/ptlrpc_module.c @@ -100,6 +100,8 @@ __init int ptlrpc_init(void) int rc; ENTRY; + lustre_assert_wire_constants (); + rc = ptlrpc_init_portals(); if (rc) RETURN(rc); @@ -192,7 +194,7 @@ EXPORT_SYMBOL(lustre_swab_mds_rec_setattr); EXPORT_SYMBOL(lustre_swab_mds_rec_create); EXPORT_SYMBOL(lustre_swab_mds_rec_link); EXPORT_SYMBOL(lustre_swab_mds_rec_unlink); -EXPORT_SYMBOL(lustre_swab_mdx_rec_rename); +EXPORT_SYMBOL(lustre_swab_mds_rec_rename); EXPORT_SYMBOL(lustre_swab_lov_desc); EXPORT_SYMBOL(lustre_swab_ldlm_res_id); EXPORT_SYMBOL(lustre_swab_ldlm_extent);