From: Brian Behlendorf Date: Wed, 12 Jan 2011 19:29:17 +0000 (-0800) Subject: Add MAXUID define X-Git-Tag: spl-0.6.0-rc1~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2b25f698cecc7ab3a3073861ab81a8258644f89;p=spl Add MAXUID define For Linux the maximum uid can vary depending on how your kernel is built. The Linux kernel still can be compiled with 16 but uids and gids, although I'm not aware of a major distribution which does this (maybe an embedded one?). Given that caviot it is reasonably safe to define the MAXUID as 2147483647. --- diff --git a/include/sys/param.h b/include/sys/param.h index be3dd4b..60f3ae2 100644 --- a/include/sys/param.h +++ b/include/sys/param.h @@ -31,4 +31,6 @@ #define ptob(pages) (pages << PAGE_SHIFT) #define btop(bytes) (bytes >> PAGE_SHIFT) +#define MAXUID 2147483647 + #endif /* SPL_PARAM_H */