Lines Matching refs:mdn
168 dnode_end_t mdn; member
1111 dnode_get(dnode_end_t *mdn, uint64_t objnum, uint8_t type, in dnode_get() argument
1121 blksz = zfs_to_cpu16(mdn->dn.dn_datablkszsec, in dnode_get()
1122 mdn->endian) << SPA_MINBLOCKSHIFT; in dnode_get()
1128 if (data->dnode_buf != NULL && memcmp(data->dnode_mdn, mdn, in dnode_get()
1129 sizeof(*mdn)) == 0 in dnode_get()
1140 err = dmu_read(mdn, blkid, &dnbuf, &endian, data); in dnode_get()
1146 data->dnode_mdn = malloc(sizeof(*mdn)); in dnode_get()
1150 memcpy(data->dnode_mdn, mdn, sizeof(*mdn)); in dnode_get()
1174 dnode_get_path(dnode_end_t *mdn, const char *path_in, dnode_end_t *dn, in dnode_get_path() argument
1193 err = dnode_get(mdn, MASTER_NODE_OBJ, DMU_OT_MASTER_NODE, in dnode_get_path()
1217 err = dnode_get(mdn, objnum, 0, &(dnode_path->dn), data); in dnode_get_path()
1277 err = dnode_get(mdn, objnum, 0, &(dnode_path->dn), data); in dnode_get_path()
1309 dnode_end_t *mdn, struct zfs_data *data) in get_filesystem_dnode() argument
1315 DMU_OT_OBJECT_DIRECTORY, mdn, data); in get_filesystem_dnode()
1319 err = zap_lookup(mdn, DMU_POOL_ROOT_DATASET, &objnum, data); in get_filesystem_dnode()
1323 err = dnode_get(mosmdn, objnum, DMU_OT_DSL_DIR, mdn, data); in get_filesystem_dnode()
1343 …childobj = zfs_to_cpu64((((dsl_dir_phys_t *) DN_BONUS(&mdn->dn)))->dd_child_dir_zapobj, mdn->endia… in get_filesystem_dnode()
1345 DMU_OT_DSL_DIR_CHILD_MAP, mdn, data); in get_filesystem_dnode()
1349 err = zap_lookup(mdn, cname, &objnum, data); in get_filesystem_dnode()
1353 err = dnode_get(mosmdn, objnum, DMU_OT_DSL_DIR, mdn, data); in get_filesystem_dnode()
1363 make_mdn(dnode_end_t *mdn, struct zfs_data *data) in make_mdn() argument
1370 bp = &(((dsl_dataset_phys_t *) DN_BONUS(&mdn->dn))->ds_bp); in make_mdn()
1371 err = zio_read(bp, mdn->endian, &osp, &ospsize, data); in make_mdn()
1380 mdn->endian = (zfs_to_cpu64(bp->blk_prop, mdn->endian)>>63) & 1; in make_mdn()
1381 memmove((char *) &(mdn->dn), in make_mdn()
1388 dnode_get_fullpath(const char *fullpath, dnode_end_t *mdn, in dnode_get_fullpath() argument
1442 err = dnode_get(&(data->mos), headobj, DMU_OT_DSL_DATASET, mdn, data); in dnode_get_fullpath()
1452 …snapobj = zfs_to_cpu64(((dsl_dataset_phys_t *) DN_BONUS(&mdn->dn))->ds_snapnames_zapobj, mdn->endi… in dnode_get_fullpath()
1455 DMU_OT_DSL_DS_SNAP_MAP, mdn, data); in dnode_get_fullpath()
1457 err = zap_lookup(mdn, snapname, &headobj, data); in dnode_get_fullpath()
1459 err = dnode_get(&(data->mos), headobj, DMU_OT_DSL_DATASET, mdn, data); in dnode_get_fullpath()
1470 make_mdn(mdn, data); in dnode_get_fullpath()
1477 err = dnode_get_path(mdn, filename, dn, data); in dnode_get_fullpath()
2012 err = dnode_get_fullpath(fsfilename, &(data->mdn), 0, in zfs_open()
2158 err = dnode_get_fullpath(fsfilename, &(data->mdn), mdnobj, in zfs_getmdnobj()
2166 dnode_end_t mdn, struct zfs_data *data) in fill_fs_info() argument
2177 if (mdn.dn.dn_type == DMU_OT_DSL_DIR) { in fill_fs_info()
2178 headobj = zfs_to_cpu64(((dsl_dir_phys_t *) DN_BONUS(&mdn.dn))->dd_head_dataset_obj, mdn.endian); in fill_fs_info()
2180 err = dnode_get(&(data->mos), headobj, DMU_OT_DSL_DATASET, &mdn, data); in fill_fs_info()
2186 make_mdn(&mdn, data); in fill_fs_info()
2187 err = dnode_get(&mdn, MASTER_NODE_OBJ, DMU_OT_MASTER_NODE, in fill_fs_info()
2200 err = dnode_get(&mdn, objnum, 0, &dn, data); in fill_fs_info()
2219 dnode_get(&(data->mdn), val, 0, &dn, data); in iterate_zap()
2233 dnode_end_t mdn; in iterate_zap_fs() local
2235 err = dnode_get(&(data->mos), val, 0, &mdn, data); in iterate_zap_fs()
2238 if (mdn.dn.dn_type != DMU_OT_DSL_DIR) in iterate_zap_fs()
2241 fill_fs_info(&info, mdn, data); in iterate_zap_fs()
2253 dnode_end_t mdn; in iterate_zap_snap() local
2256 err = dnode_get(&(data->mos), val, 0, &mdn, data); in iterate_zap_snap()
2260 if (mdn.dn.dn_type != DMU_OT_DSL_DATASET) in iterate_zap_snap()
2263 fill_fs_info(&info, mdn, data); in iterate_zap_snap()
2288 err = dnode_get_fullpath(path, &(data->mdn), 0, &(data->dnode), &isfs, data); in zfs_ls()