Deleted Added
sdiff udiff text old ( 249643 ) new ( 265754 )
full compact
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

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

16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22/*
23 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
24 * Copyright (c) 2012 by Delphix. All rights reserved.
25 */
26
27/*
28 * Internal utility routines for the ZFS library.
29 */
30
31#include <sys/param.h>

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

1261 * Quota special: force 'none' and don't allow 0.
1262 */
1263 if ((type & ZFS_TYPE_DATASET) && *ivalp == 0 && !isnone &&
1264 (prop == ZFS_PROP_QUOTA || prop == ZFS_PROP_REFQUOTA)) {
1265 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
1266 "use 'none' to disable quota/refquota"));
1267 goto error;
1268 }
1269 break;
1270
1271 case PROP_TYPE_INDEX:
1272 if (datatype != DATA_TYPE_STRING) {
1273 zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
1274 "'%s' must be a string"), nvpair_name(elem));
1275 goto error;
1276 }

--- 257 unchanged lines hidden ---