Use MAXOFFSET_T instead of SPEC_MAXOFFSET_T for 32-bit arch.
This commit is contained in:
parent
69c72b0f0a
commit
8f1eb1049b
|
@ -213,7 +213,7 @@ zvol_check_volsize(uint64_t volsize, uint64_t blocksize)
|
|||
return (EINVAL);
|
||||
|
||||
#ifdef _ILP32
|
||||
if (volsize - 1 > SPEC_MAXOFFSET_T)
|
||||
if (volsize - 1 > MAXOFFSET_T)
|
||||
return (EOVERFLOW);
|
||||
#endif
|
||||
return (0);
|
||||
|
|
Loading…
Reference in New Issue