Home
last modified time | relevance | path

Searched refs:zfh (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/lib/libgrubmgmt/common/
H A Dlibgrub_cmd.c260 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 Dlibgrub_fs.c176 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()