Lines Matching defs:zc
62 ioctl_with_cmdstr(int ioc, zfs_cmd_t *zc)
67 zc->zc_history = (uint64_t)(uintptr_t)cmdstr;
68 err = ioctl(zfsdevfd, ioc, zc);
187 add_ds_props(zfs_cmd_t *zc, PyObject *nvl)
189 dmu_objset_stats_t *s = &zc->zc_objset_stats;
200 ioctl_with_dstnv(int ioc, zfs_cmd_t *zc)
208 zc->zc_nvlist_dst_size = nvsz;
209 zc->zc_nvlist_dst = (uintptr_t)nvbuf;
211 if (ioctl(zfsdevfd, ioc, zc) == 0) {
214 errno = nvlist_unpack(nvbuf, zc->zc_nvlist_dst_size, &nvl, 0);
221 nvsz = zc->zc_nvlist_dst_size;
233 zfs_cmd_t zc = { 0 };
242 (void) strlcpy(zc.zc_name, name, sizeof (zc.zc_name));
243 zc.zc_cookie = cookie;
250 nvl = ioctl_with_dstnv(ioc, &zc);
252 add_ds_props(&zc, nvl);
253 ret = Py_BuildValue("sKO", zc.zc_name, zc.zc_cookie, nvl);
269 zfs_cmd_t zc = { 0 };
277 (void) strlcpy(zc.zc_name, name, sizeof (zc.zc_name));
279 nvl = ioctl_with_dstnv(ZFS_IOC_OBJSET_STATS, &zc);
281 add_ds_props(&zc, nvl);
291 zfs_cmd_t zc = { 0 };
298 (void) strlcpy(zc.zc_name, name, sizeof (zc.zc_name));
300 nvl = ioctl_with_dstnv(ZFS_IOC_GET_FSACL, &zc);
312 zfs_cmd_t zc = { 0 };
332 (void) strlcpy(zc.zc_name, name, sizeof (zc.zc_name));
333 zc.zc_nvlist_src_size = nvsz;
334 zc.zc_nvlist_src = (uintptr_t)nvbuf;
335 zc.zc_perm_action = un;
337 err = ioctl_with_cmdstr(ZFS_IOC_SET_FSACL, &zc);
350 zfs_cmd_t zc = { 0 };
357 (void) strlcpy(zc.zc_name, name, sizeof (zc.zc_name));
359 nvl = ioctl_with_dstnv(ZFS_IOC_GET_HOLDS, &zc);
369 zfs_cmd_t zc = { 0 };
391 (void) strlcpy(zc.zc_name, name, sizeof (zc.zc_name));
392 zc.zc_objset_type = type;
393 zc.zc_cookie = 0;
398 zc.zc_nvlist_dst = (uintptr_t)buf;
399 zc.zc_nvlist_dst_size = bufsz;
401 error = ioctl(zfsdevfd, ZFS_IOC_USERSPACE_MANY, &zc);
402 if (error || zc.zc_nvlist_dst_size == 0)
405 while (zc.zc_nvlist_dst_size > 0) {
416 zc.zc_nvlist_dst_size -= sizeof (zfs_useracct_t);
434 zfs_cmd_t zc = { 0 };
441 (void) strlcpy(zc.zc_name, name, sizeof (zc.zc_name));
442 error = ioctl(zfsdevfd, ZFS_IOC_USERSPACE_UPGRADE, &zc);