Deleted Added
full compact
libzfs_dataset.c (323757) libzfs_dataset.c (325139)
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

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

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) 2013, Joyent, Inc. All rights reserved.
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

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

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) 2013, Joyent, Inc. All rights reserved.
25 * Copyright (c) 2011, 2015 by Delphix. All rights reserved.
25 * Copyright (c) 2011, 2016 by Delphix. All rights reserved.
26 * Copyright (c) 2012 DEY Storage Systems, Inc. All rights reserved.
27 * Copyright (c) 2011-2012 Pawel Jakub Dawidek. All rights reserved.
28 * Copyright (c) 2013 Martin Matuska. All rights reserved.
29 * Copyright (c) 2013 Steven Hartland. All rights reserved.
30 * Copyright (c) 2014 Integros [integros.com]
31 * Copyright 2016 Igor Kozhukhov <ikozhukhov@gmail.com>
32 * Copyright 2016 Nexenta Systems, Inc.
33 * Copyright 2017 RackTop Systems.

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

2161 /*
2162 * If we tried to use a default value for a
2163 * readonly property, it means that it was not
2164 * present.
2165 */
2166 if (zfs_prop_readonly(prop) &&
2167 *source != NULL && (*source)[0] == '\0') {
2168 *source = NULL;
26 * Copyright (c) 2012 DEY Storage Systems, Inc. All rights reserved.
27 * Copyright (c) 2011-2012 Pawel Jakub Dawidek. All rights reserved.
28 * Copyright (c) 2013 Martin Matuska. All rights reserved.
29 * Copyright (c) 2013 Steven Hartland. All rights reserved.
30 * Copyright (c) 2014 Integros [integros.com]
31 * Copyright 2016 Igor Kozhukhov <ikozhukhov@gmail.com>
32 * Copyright 2016 Nexenta Systems, Inc.
33 * Copyright 2017 RackTop Systems.

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

2161 /*
2162 * If we tried to use a default value for a
2163 * readonly property, it means that it was not
2164 * present.
2165 */
2166 if (zfs_prop_readonly(prop) &&
2167 *source != NULL && (*source)[0] == '\0') {
2168 *source = NULL;
2169 return (-1);
2169 }
2170 break;
2171
2172 case PROP_TYPE_STRING:
2173 default:
2174 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
2175 "cannot get non-numeric property"));
2176 return (zfs_error(zhp->zfs_hdl, EZFS_BADPROP,

--- 2813 unchanged lines hidden ---
2170 }
2171 break;
2172
2173 case PROP_TYPE_STRING:
2174 default:
2175 zfs_error_aux(zhp->zfs_hdl, dgettext(TEXT_DOMAIN,
2176 "cannot get non-numeric property"));
2177 return (zfs_error(zhp->zfs_hdl, EZFS_BADPROP,

--- 2813 unchanged lines hidden ---