mntopts.h (146853) | mntopts.h (147242) |
---|---|
1/*- 2 * Copyright (c) 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)mntopts.h 8.7 (Berkeley) 3/29/95 | 1/*- 2 * Copyright (c) 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)mntopts.h 8.7 (Berkeley) 3/29/95 |
30 * $FreeBSD: head/sbin/mount/mntopts.h 146853 2005-06-01 09:39:36Z delphij $ | 30 * $FreeBSD: head/sbin/mount/mntopts.h 147242 2005-06-10 09:51:43Z delphij $ |
31 */ 32 33struct mntopt { 34 const char *m_option; /* option name */ 35 int m_inverse; /* if a negative option, e.g. "dev" */ 36 int m_flag; /* bit to set, e.g. MNT_RDONLY */ 37 int m_altloc; /* 1 => set bit in altflags */ 38}; --- 21 unchanged lines hidden (view full) --- 60#define MOPT_FORCE { "force", 0, MNT_FORCE, 0 } 61#define MOPT_UPDATE { "update", 0, MNT_UPDATE, 0 } 62#define MOPT_RO { "ro", 0, MNT_RDONLY, 0 } 63#define MOPT_RW { "rw", 1, MNT_RDONLY, 0 } 64 65/* This is parsed by mount(8), but is ignored by specific mount_*(8)s. */ 66#define MOPT_AUTO { "auto", 0, 0, 0 } 67 | 31 */ 32 33struct mntopt { 34 const char *m_option; /* option name */ 35 int m_inverse; /* if a negative option, e.g. "dev" */ 36 int m_flag; /* bit to set, e.g. MNT_RDONLY */ 37 int m_altloc; /* 1 => set bit in altflags */ 38}; --- 21 unchanged lines hidden (view full) --- 60#define MOPT_FORCE { "force", 0, MNT_FORCE, 0 } 61#define MOPT_UPDATE { "update", 0, MNT_UPDATE, 0 } 62#define MOPT_RO { "ro", 0, MNT_RDONLY, 0 } 63#define MOPT_RW { "rw", 1, MNT_RDONLY, 0 } 64 65/* This is parsed by mount(8), but is ignored by specific mount_*(8)s. */ 66#define MOPT_AUTO { "auto", 0, 0, 0 } 67 |
68/* A handy macro as terminator of MNT_ array */ 69#define MOPT_NULL { NULL, 0, 0, 0 } | 68/* A handy macro as terminator of MNT_ array. */ 69#define MOPT_END { NULL, 0, 0, 0 } |
70 71#define MOPT_FSTAB_COMPAT \ 72 MOPT_RO, \ 73 MOPT_RW, \ 74 MOPT_AUTO 75 76/* Standard options which all mounts can understand. */ 77#define MOPT_STDOPTS \ --- 21 unchanged lines hidden --- | 70 71#define MOPT_FSTAB_COMPAT \ 72 MOPT_RO, \ 73 MOPT_RW, \ 74 MOPT_AUTO 75 76/* Standard options which all mounts can understand. */ 77#define MOPT_STDOPTS \ --- 21 unchanged lines hidden --- |