From: Brian Behlendorf Date: Fri, 29 Apr 2011 20:58:45 +0000 (-0700) Subject: Correct MAXUID X-Git-Tag: debian/0.7.9-2~305^2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=c1f95c2b94c0ee71b1fe1f71fd5e471802ffd73d;p=mirror_spl-debian.git Correct MAXUID The uid_t on most systems is in fact and unsigned 32-bit value. This is almost always correct, however you could compile your kernel to use an unsigned 16-bit value for uid_t. In practice I've never encountered a distribution which does this so I'm willing to overlook this corner case for now. --- diff --git a/include/sys/param.h b/include/sys/param.h index 60f3ae2..5a19949 100644 --- a/include/sys/param.h +++ b/include/sys/param.h @@ -31,6 +31,6 @@ #define ptob(pages) (pages << PAGE_SHIFT) #define btop(bytes) (bytes >> PAGE_SHIFT) -#define MAXUID 2147483647 +#define MAXUID UINT32_MAX #endif /* SPL_PARAM_H */