]> git.proxmox.com Git - mirror_spl-debian.git/commitdiff
Correct MAXUID
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 29 Apr 2011 20:58:45 +0000 (13:58 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 29 Apr 2011 20:58:45 +0000 (13:58 -0700)
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.

include/sys/param.h

index 60f3ae2a97655154da5d42a8b7e390b057ed05c7..5a199496026a5f29882a2fb85f5418b1df7f3142 100644 (file)
@@ -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 */