Print this page
5255 uts shouldn't open-code ISP2

*** 23,32 **** --- 23,33 ---- * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright 2013 Nexenta Systems, Inc. All rights reserved. * Copyright (c) 2013 by Delphix. All rights reserved. */ + #include <sys/sysmacros.h> #include <sys/conf.h> #include <sys/file.h> #include <sys/ddi.h> #include <sys/sunddi.h> #include <sys/modctl.h>
*** 1834,1844 **** } if (slu->slu_write_protected) { sl->sl_flags |= SL_WRITE_PROTECTED; } if (slu->slu_blksize_valid) { ! if ((slu->slu_blksize & (slu->slu_blksize - 1)) || (slu->slu_blksize > (32 * 1024)) || (slu->slu_blksize == 0)) { *err_ret = SBD_RET_INVALID_BLKSIZE; ret = EINVAL; goto scm_err_out; --- 1835,1845 ---- } if (slu->slu_write_protected) { sl->sl_flags |= SL_WRITE_PROTECTED; } if (slu->slu_blksize_valid) { ! if (!ISP2(slu->slu_blksize) || (slu->slu_blksize > (32 * 1024)) || (slu->slu_blksize == 0)) { *err_ret = SBD_RET_INVALID_BLKSIZE; ret = EINVAL; goto scm_err_out;