4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or https://opensource.org/licenses/CDDL-1.0.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #ifndef _LIBSPL_SYS_PARAM_H
28 #define _LIBSPL_SYS_PARAM_H
30 #include_next <sys/param.h>
34 * File system parameters and macros.
36 * The file system is made out of blocks of at most MAXBSIZE units,
37 * with smaller units (fragments) only in the last direct block.
38 * MAXBSIZE primarily determines the size of buffers in the buffer
39 * pool. It may be made larger without any effect on existing
40 * file systems; however making it smaller may make some file
41 * systems unmountable.
43 * Note that the blocked devices are assumed to have DEV_BSIZE
44 * "sectors" and that fragments must be some multiple of this size.
46 #define MAXNAMELEN 256
48 #define UID_NOACCESS 60002 /* user ID no access */
50 #define MAXUID UINT32_MAX /* max user id */
51 #define MAXPROJID MAXUID /* max project id */
57 extern size_t spl_pagesize(void);
58 #define PAGESIZE (spl_pagesize())
61 extern int execvpe(const char *name
, char * const argv
[], char * const envp
[]);