Use MAXOFFSET_T instead of SPEC_MAXOFFSET_T for 32-bit arch.

This commit is contained in:
Brian Behlendorf 2009-12-11 12:01:16 -08:00
parent 69c72b0f0a
commit 8f1eb1049b
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ zvol_check_volsize(uint64_t volsize, uint64_t blocksize)
return (EINVAL); return (EINVAL);
#ifdef _ILP32 #ifdef _ILP32
if (volsize - 1 > SPEC_MAXOFFSET_T) if (volsize - 1 > MAXOFFSET_T)
return (EOVERFLOW); return (EOVERFLOW);
#endif #endif
return (0); return (0);