1*66463Sbostic /*- 2*66463Sbostic * Copyright (c) 1994 3*66463Sbostic * The Regents of the University of California. All rights reserved. 4*66463Sbostic * 5*66463Sbostic * %sccs.include.redist.c% 6*66463Sbostic * 7*66463Sbostic * @(#)mntopts.h 8.1 (Berkeley) 03/27/94 8*66463Sbostic */ 9*66463Sbostic 10*66463Sbostic struct mntopt { 11*66463Sbostic const char *m_option; /* option name */ 12*66463Sbostic int m_inverse; /* if a negative option, eg "dev" */ 13*66463Sbostic int m_flag; /* bit to set, eg. MNT_RDONLY */ 14*66463Sbostic }; 15*66463Sbostic 16*66463Sbostic /* User-visible MNT_ flags. */ 17*66463Sbostic #define MOPT_ASYNC { "async", 0, MNT_ASYNC } 18*66463Sbostic #define MOPT_NODEV { "dev", 1, MNT_NODEV } 19*66463Sbostic #define MOPT_NOEXEC { "exec", 1, MNT_NOEXEC } 20*66463Sbostic #define MOPT_NOSUID { "suid", 1, MNT_NOSUID } 21*66463Sbostic #define MOPT_RDONLY { "rdonly", 0, MNT_RDONLY } 22*66463Sbostic #define MOPT_SYNCHRONOUS { "synchronous", 0, MNT_SYNCHRONOUS } 23*66463Sbostic #define MOPT_UNION { "union", 0, MNT_UNION } 24*66463Sbostic 25*66463Sbostic /* Control flags. */ 26*66463Sbostic #define MOPT_FORCE { "exec", 1, MNT_FORCE } 27*66463Sbostic #define MOPT_UPDATE { "update", 0, MNT_UPDATE } 28*66463Sbostic 29*66463Sbostic /* Support for old-style "ro", "rw" flags. */ 30*66463Sbostic #define MOPT_RO { "ro", 0, MNT_RDONLY } 31*66463Sbostic #define MOPT_RW { "rw", 1, MNT_RDONLY } 32*66463Sbostic 33*66463Sbostic #define MOPT_FSTAB_COMPAT \ 34*66463Sbostic MOPT_RO, \ 35*66463Sbostic MOPT_RW 36*66463Sbostic 37*66463Sbostic /* Standard options which all mounts can understand. */ 38*66463Sbostic #define MOPT_STDOPTS \ 39*66463Sbostic MOPT_FSTAB_COMPAT, \ 40*66463Sbostic MOPT_NODEV, \ 41*66463Sbostic MOPT_NOEXEC, \ 42*66463Sbostic MOPT_NOSUID, \ 43*66463Sbostic MOPT_RDONLY, \ 44*66463Sbostic MOPT_UNION 45*66463Sbostic 46*66463Sbostic void getmntopts __P((const char *, const struct mntopt *, int *)); 47