Skip to content

Commit 6de9bb5

Browse files
committed
6286 ZFS internal error when set large block on bootfs
Reviewed by: Paul Dagnelie <pcd@delphix.com> Reviewed by: George Wilson <george.wilson@delphix.com> Reviewed by: Andriy Gapon <avg@FreeBSD.org> Approved by: Robert Mustacchi <rm@joyent.com>
1 parent 0f2e7d0 commit 6de9bb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

usr/src/uts/common/fs/zfs/zfs_ioctl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Portions Copyright 2011 Martin Matuska
2525
* Copyright 2015 Nexenta Systems, Inc. All rights reserved.
2626
* Copyright (c) 2014, Joyent, Inc. All rights reserved.
27-
* Copyright (c) 2011, 2014 by Delphix. All rights reserved.
27+
* Copyright (c) 2011, 2015 by Delphix. All rights reserved.
2828
* Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
2929
* Copyright (c) 2013 Steven Hartland. All rights reserved.
3030
*/
@@ -3831,7 +3831,7 @@ zfs_check_settable(const char *dsname, nvpair_t *pair, cred_t *cr)
38313831
*/
38323832
if (zfs_is_bootfs(dsname) &&
38333833
intval > SPA_OLD_MAXBLOCKSIZE) {
3834-
return (SET_ERROR(EDOM));
3834+
return (SET_ERROR(ERANGE));
38353835
}
38363836

38373837
/*
@@ -3840,7 +3840,7 @@ zfs_check_settable(const char *dsname, nvpair_t *pair, cred_t *cr)
38403840
*/
38413841
if (intval > zfs_max_recordsize ||
38423842
intval > SPA_MAXBLOCKSIZE)
3843-
return (SET_ERROR(EDOM));
3843+
return (SET_ERROR(ERANGE));
38443844

38453845
if ((err = spa_open(dsname, &spa, FTAG)) != 0)
38463846
return (err);

0 commit comments

Comments
 (0)