Lines Matching defs:zfs
82 zfs_handle_t *zfs;
96 zfs = zfs_path_to_zhandle(lbh->lzh, "/", ZFS_TYPE_FILESYSTEM);
97 if (zfs == NULL)
100 strlcpy(lbh->rootfs, zfs_get_name(zfs), sizeof(lbh->rootfs));
101 zfs_close(zfs);
121 * If the zfs kmod's not loaded then the later libzfs_init() will load
127 if (modfind("zfs") < 0)
1054 zfs_handle_t *zfs;
1064 if ((zfs = zfs_open(lbh->lzh, buf, ZFS_TYPE_DATASET)) == NULL)
1067 err = zfs_send_one(zfs, NULL, fd, &flags, /* redactbook */ NULL);
1068 zfs_close(zfs);
1079 zfs_handle_t *zfs;
1098 if ((zfs = zfs_open(lbh->lzh, buf, ZFS_TYPE_FILESYSTEM)) == NULL)
1105 err = zfs_prop_set_list(zfs, props);
1108 zfs_close(zfs);
1122 zfs_handle_t *zfs;
1148 if ((zfs = zfs_open(lbh->lzh, active, ZFS_TYPE_DATASET)) == NULL)
1152 if ((err = zfs_prop_set(zfs, "canmount", "noauto")) != 0) {
1153 zfs_close(zfs);
1163 zfs_close(zfs);
1171 zfs_handle_t *zfs;
1177 * Establish if the existing path is a zfs dataset or just
1205 if ((zfs = zfs_open(lbh->lzh, buf, ZFS_TYPE_SNAPSHOT)) == NULL)
1208 if ((err = zfs_clone(zfs, active, NULL)) != 0)
1213 zfs_close(zfs);
1268 zfs_handle_t *zfs;
1275 if ((zfs = zfs_open(lbh->lzh, ds, ZFS_TYPE_DATASET)) == NULL)
1277 if (zfs_prop_set(zfs, "canmount", "noauto") != 0)
1279 zfs_close(zfs);