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 error = func(arg, zua->zu_domain, zua->zu_rid, 4082 zua->zu_space); 4083 if (error != 0) 4084 return (error); |
4085 zua++; 4086 zc.zc_nvlist_dst_size -= sizeof (zfs_useracct_t); 4087 } 4088 } 4089 4090 return (error); 4091} |