Deleted Added
full compact
mount.h (112693) mount.h (117132)
1/*
2 * Copyright (c) 1989, 1991, 1993
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

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)mount.h 8.21 (Berkeley) 5/20/95
1/*
2 * Copyright (c) 1989, 1991, 1993
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

--- 17 unchanged lines hidden (view full) ---

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)mount.h 8.21 (Berkeley) 5/20/95
34 * $FreeBSD: head/sys/sys/mount.h 112693 2003-03-26 22:15:58Z tegge $
34 * $FreeBSD: head/sys/sys/mount.h 117132 2003-07-01 17:40:23Z iedowse $
35 */
36
37#ifndef _SYS_MOUNT_H_
38#define _SYS_MOUNT_H_
39
40#include <sys/ucred.h>
41#include <sys/queue.h>
42#ifdef _KERNEL

--- 176 unchanged lines hidden (view full) ---

219 * Unmount can use the MNT_FORCE flag.
220 * XXX These are not STATES and really should be somewhere else.
221 */
222#define MNT_UPDATE 0x00010000 /* not a real mount, just an update */
223#define MNT_DELEXPORT 0x00020000 /* delete export host lists */
224#define MNT_RELOAD 0x00040000 /* reload filesystem data */
225#define MNT_FORCE 0x00080000 /* force unmount or readonly change */
226#define MNT_SNAPSHOT 0x01000000 /* snapshot the filesystem */
35 */
36
37#ifndef _SYS_MOUNT_H_
38#define _SYS_MOUNT_H_
39
40#include <sys/ucred.h>
41#include <sys/queue.h>
42#ifdef _KERNEL

--- 176 unchanged lines hidden (view full) ---

219 * Unmount can use the MNT_FORCE flag.
220 * XXX These are not STATES and really should be somewhere else.
221 */
222#define MNT_UPDATE 0x00010000 /* not a real mount, just an update */
223#define MNT_DELEXPORT 0x00020000 /* delete export host lists */
224#define MNT_RELOAD 0x00040000 /* reload filesystem data */
225#define MNT_FORCE 0x00080000 /* force unmount or readonly change */
226#define MNT_SNAPSHOT 0x01000000 /* snapshot the filesystem */
227#define MNT_BYFSID 0x08000000 /* specify filesystem by ID. */
227#define MNT_CMDFLAGS (MNT_UPDATE | MNT_DELEXPORT | MNT_RELOAD | \
228#define MNT_CMDFLAGS (MNT_UPDATE | MNT_DELEXPORT | MNT_RELOAD | \
228 MNT_FORCE | MNT_SNAPSHOT)
229 MNT_FORCE | MNT_SNAPSHOT | MNT_BYFSID)
229/*
230/*
230 * Still available
231 */
232#define MNT_SPARE3 0x08000000
233/*
234 * Internal filesystem control flags stored in mnt_kern_flag.
235 *
236 * MNTK_UNMOUNT locks the mount entry so that name lookup cannot proceed
237 * past the mount point. This keeps the subtree stable during mounts
238 * and unmounts.
239 *
240 * MNTK_UNMOUNTF permits filesystems to detect a forced unmount while
241 * dounmount() is still waiting to lock the mountpoint. This allows

--- 306 unchanged lines hidden ---
231 * Internal filesystem control flags stored in mnt_kern_flag.
232 *
233 * MNTK_UNMOUNT locks the mount entry so that name lookup cannot proceed
234 * past the mount point. This keeps the subtree stable during mounts
235 * and unmounts.
236 *
237 * MNTK_UNMOUNTF permits filesystems to detect a forced unmount while
238 * dounmount() is still waiting to lock the mountpoint. This allows

--- 306 unchanged lines hidden ---