zfs_ioctl.c (331611) | zfs_ioctl.c (332524) |
---|---|
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 --- 17 unchanged lines hidden (view full) --- 26 * Copyright 2014 Xin Li <delphij@FreeBSD.org>. All rights reserved. 27 * Copyright 2015, OmniTI Computer Consulting, Inc. All rights reserved. 28 * Copyright 2015 Nexenta Systems, Inc. All rights reserved. 29 * Copyright (c) 2014, 2016 Joyent, Inc. All rights reserved. 30 * Copyright (c) 2011, 2017 by Delphix. All rights reserved. 31 * Copyright (c) 2013 by Saso Kiselkov. All rights reserved. 32 * Copyright (c) 2013 Steven Hartland. All rights reserved. 33 * Copyright (c) 2014 Integros [integros.com] | 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 --- 17 unchanged lines hidden (view full) --- 26 * Copyright 2014 Xin Li <delphij@FreeBSD.org>. All rights reserved. 27 * Copyright 2015, OmniTI Computer Consulting, Inc. All rights reserved. 28 * Copyright 2015 Nexenta Systems, Inc. All rights reserved. 29 * Copyright (c) 2014, 2016 Joyent, Inc. All rights reserved. 30 * Copyright (c) 2011, 2017 by Delphix. All rights reserved. 31 * Copyright (c) 2013 by Saso Kiselkov. All rights reserved. 32 * Copyright (c) 2013 Steven Hartland. All rights reserved. 33 * Copyright (c) 2014 Integros [integros.com] |
34 * Copyright 2016 Toomas Soome <tsoome@me.com> |
|
34 * Copyright 2017 RackTop Systems. 35 * Copyright (c) 2017 Datto Inc. | 35 * Copyright 2017 RackTop Systems. 36 * Copyright (c) 2017 Datto Inc. |
37 * Copyright 2016 Toomas Soome <tsoome@me.com> |
|
36 */ 37 38/* 39 * ZFS ioctls. 40 * 41 * This file handles the ioctls to /dev/zfs, used for configuring ZFS storage 42 * pools and filesystems, e.g. with /sbin/zfs and /sbin/zpool. 43 * --- 4001 unchanged lines hidden (view full) --- 4045 4046 case ZFS_PROP_RECORDSIZE: 4047 /* Record sizes above 128k need the feature to be enabled */ 4048 if (nvpair_value_uint64(pair, &intval) == 0 && 4049 intval > SPA_OLD_MAXBLOCKSIZE) { 4050 spa_t *spa; 4051 4052 /* | 38 */ 39 40/* 41 * ZFS ioctls. 42 * 43 * This file handles the ioctls to /dev/zfs, used for configuring ZFS storage 44 * pools and filesystems, e.g. with /sbin/zfs and /sbin/zpool. 45 * --- 4001 unchanged lines hidden (view full) --- 4047 4048 case ZFS_PROP_RECORDSIZE: 4049 /* Record sizes above 128k need the feature to be enabled */ 4050 if (nvpair_value_uint64(pair, &intval) == 0 && 4051 intval > SPA_OLD_MAXBLOCKSIZE) { 4052 spa_t *spa; 4053 4054 /* |
4053 * If this is a bootable dataset then 4054 * the we don't allow large (>128K) blocks, 4055 * because GRUB doesn't support them. 4056 */ 4057 if (zfs_is_bootfs(dsname) && 4058 intval > SPA_OLD_MAXBLOCKSIZE) { 4059 return (SET_ERROR(ERANGE)); 4060 } 4061 4062 /* | |
4063 * We don't allow setting the property above 1MB, 4064 * unless the tunable has been changed. 4065 */ 4066 if (intval > zfs_max_recordsize || 4067 intval > SPA_MAXBLOCKSIZE) 4068 return (SET_ERROR(ERANGE)); 4069 4070 if ((err = spa_open(dsname, &spa, FTAG)) != 0) --- 2927 unchanged lines hidden --- | 4055 * We don't allow setting the property above 1MB, 4056 * unless the tunable has been changed. 4057 */ 4058 if (intval > zfs_max_recordsize || 4059 intval > SPA_MAXBLOCKSIZE) 4060 return (SET_ERROR(ERANGE)); 4061 4062 if ((err = spa_open(dsname, &spa, FTAG)) != 0) --- 2927 unchanged lines hidden --- |