libzfs_dataset.c (edea4b556f0b07459cdcc780ffcd28a40b374945) libzfs_dataset.c (0aea4b19873599c9a11db600b90263c7233db953)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 4064 unchanged lines hidden (view full) ---

4073
4074 zc.zc_nvlist_dst_size = sizeof (buf);
4075 error = ioctl(zhp->zfs_hdl->libzfs_fd,
4076 ZFS_IOC_USERSPACE_MANY, &zc);
4077 if (error || zc.zc_nvlist_dst_size == 0)
4078 break;
4079
4080 while (zc.zc_nvlist_dst_size > 0) {
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 4064 unchanged lines hidden (view full) ---

4073
4074 zc.zc_nvlist_dst_size = sizeof (buf);
4075 error = ioctl(zhp->zfs_hdl->libzfs_fd,
4076 ZFS_IOC_USERSPACE_MANY, &zc);
4077 if (error || zc.zc_nvlist_dst_size == 0)
4078 break;
4079
4080 while (zc.zc_nvlist_dst_size > 0) {
4081 func(arg, zua->zu_domain, zua->zu_rid, zua->zu_space);
4081 error = func(arg, zua->zu_domain, zua->zu_rid,
4082 zua->zu_space);
4083 if (error != 0)
4084 return (error);
4082 zua++;
4083 zc.zc_nvlist_dst_size -= sizeof (zfs_useracct_t);
4084 }
4085 }
4086
4087 return (error);
4088}
4085 zua++;
4086 zc.zc_nvlist_dst_size -= sizeof (zfs_useracct_t);
4087 }
4088 }
4089
4090 return (error);
4091}