From e2b25f698cecc7ab3a3073861ab81a8258644f89 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 12 Jan 2011 11:29:17 -0800 Subject: [PATCH] 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. --- include/sys/param.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/sys/param.h b/include/sys/param.h index be3dd4bf3..60f3ae2a9 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 */