Searched refs:zfh (Results 1 – 3 of 3) sorted by relevance
/titanic_50/usr/src/lib/libgrubmgmt/common/ |
H A D | libgrub_cmd.c | 260 match_bootfs(zfs_handle_t *zfh, void *data) in match_bootfs() argument 266 ret = (zfs_get_type(zfh) == ZFS_TYPE_FILESYSTEM && in match_bootfs() 267 (zfn = zfs_get_name(zfh)) != NULL && in match_bootfs() 273 (void) zfs_iter_filesystems(zfh, match_bootfs, barg); in match_bootfs() 275 zfs_close(zfh); in match_bootfs() 432 zfs_handle_t *zfh; in bootfs() local 455 if ((zfh = zfs_open(mp->gm_fs.gf_lzfh, in bootfs() 461 (void) zfs_iter_filesystems(zfh, match_bootfs, barg); in bootfs() 462 zfs_close(zfh); in bootfs()
|
H A D | libgrub_fs.c | 176 get_zfs_root(zfs_handle_t *zfh, grub_fs_t *fs, grub_root_t *root) in get_zfs_root() argument 182 if (zfs_get_type(zfh) != ZFS_TYPE_FILESYSTEM || in get_zfs_root() 183 (name = zfs_get_name(zfh)) == NULL || in get_zfs_root() 242 zfs_bootsign(zfs_handle_t *zfh, void *data) in zfs_bootsign() argument 253 if (get_zfs_root(zfh, &menu->gm_fs, &barg->gb_root) != 0 || in zfs_bootsign() 283 zfs_close(zfh); in zfs_bootsign() 443 zfs_handle_t *zfh = NULL; in grub_current_root() local 473 if ((zfh = zfs_open(fs->gf_lzfh, name, ZFS_TYPE_FILESYSTEM)) == in grub_current_root() 480 if (get_zfs_root(zfh, fs, root)) in grub_current_root() 490 zfs_close(zfh); in grub_current_root()
|
/titanic_50/usr/src/cmd/zfs/ |
H A D | zfs_main.c | 6842 xlist(zfs_handle_t *zfh, void *ctx) in xlist() argument 6846 if (zfs_get_type(zfh) & dataset_type) in xlist() 6847 printf("%s\n", zfs_get_name(zfh)); in xlist() 6849 if (zfs_get_type(zfh) != ZFS_TYPE_FILESYSTEM) { in xlist() 6850 zfs_close(zfh); in xlist() 6855 ret = zfs_iter_snapshots(zfh, xlist, ctx); in xlist() 6858 zfs_get_name(zfh), in xlist() 6865 ret = zfs_iter_bookmarks(zfh, xlist, ctx); in xlist() 6868 zfs_get_name(zfh), in xlist() 6874 ret = zfs_iter_filesystems(zfh, xlist, ctx); in xlist() [all …]
|