- struct lu_nodemap *nodemap = PDE_DATA(inode);
-
- return single_open(file, nodemap_ranges_show, nodemap);
-}
-
-/**
- * Hash callback, reads and prints the exports attached to this nodemap.
- *
- * \param hs nodemap member hash
- * \param bd unused
- * \param hnode current member in hash
- * \param data seq_file to print to
- * \retval 0 success
- */
-static int nodemap_exports_show_cb(cfs_hash_t *hs, cfs_hash_bd_t *bd,
- struct hlist_node *hnode, void *data)
-{
- struct seq_file *m = data;
- struct obd_export *exp;
- char nidstr[LNET_NIDSTR_SIZE] = "<unknown>";
-
- exp = hlist_entry(hnode, struct obd_export,
- exp_target_data.ted_nodemap_member);
- if (exp->exp_connection != NULL)
- libcfs_nid2str_r(exp->exp_connection->c_peer.nid,
- nidstr, sizeof(nidstr));
-
- seq_printf(m, " { nid: %s, uuid: %s },",
- nidstr, exp->exp_client_uuid.uuid);
-
- return 0;