-__u32 nodemap_test_id(lnet_nid_t nid, enum nodemap_id_type idtype,
- __u32 client_id);
-struct nm_config_file *nm_config_file_register(const struct lu_env *env,
- struct dt_object *obj);
-void nm_config_file_deregister(const struct lu_env *env,
- struct nm_config_file *ncf);
+int nodemap_test_id(lnet_nid_t nid, enum nodemap_id_type idtype,
+ __u32 client_id, __u32 *fs_id);
+
+struct nm_config_file *nm_config_file_register_mgs(const struct lu_env *env,
+ struct dt_object *obj,
+ struct local_oid_storage *los);
+struct dt_device;
+struct nm_config_file *nm_config_file_register_tgt(const struct lu_env *env,
+ struct dt_device *dev,
+ struct local_oid_storage *los);
+void nm_config_file_deregister_mgs(const struct lu_env *env,
+ struct nm_config_file *ncf);
+void nm_config_file_deregister_tgt(const struct lu_env *env,
+ struct nm_config_file *ncf);