mount.h (162647) | mount.h (162649) |
---|---|
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 --- 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 * @(#)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 --- 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 * @(#)mount.h 8.21 (Berkeley) 5/20/95 |
30 * $FreeBSD: head/sys/sys/mount.h 162647 2006-09-26 04:12:49Z tegge $ | 30 * $FreeBSD: head/sys/sys/mount.h 162649 2006-09-26 04:15:59Z tegge $ |
31 */ 32 33#ifndef _SYS_MOUNT_H_ 34#define _SYS_MOUNT_H_ 35 36#include <sys/ucred.h> 37#include <sys/queue.h> 38#ifdef _KERNEL --- 113 unchanged lines hidden (view full) --- 152 struct vnode *mnt_vnodecovered; /* vnode we mounted on */ 153 struct vnode *mnt_syncer; /* syncer vnode */ 154 int mnt_ref; /* (i) Reference count */ 155 struct vnodelst mnt_nvnodelist; /* (i) list of vnodes */ 156 int mnt_nvnodelistsize; /* (i) # of vnodes */ 157 int mnt_writeopcount; /* (i) write syscalls pending */ 158 int mnt_kern_flag; /* (i) kernel only flags */ 159 u_int mnt_flag; /* (i) flags shared with user */ | 31 */ 32 33#ifndef _SYS_MOUNT_H_ 34#define _SYS_MOUNT_H_ 35 36#include <sys/ucred.h> 37#include <sys/queue.h> 38#ifdef _KERNEL --- 113 unchanged lines hidden (view full) --- 152 struct vnode *mnt_vnodecovered; /* vnode we mounted on */ 153 struct vnode *mnt_syncer; /* syncer vnode */ 154 int mnt_ref; /* (i) Reference count */ 155 struct vnodelst mnt_nvnodelist; /* (i) list of vnodes */ 156 int mnt_nvnodelistsize; /* (i) # of vnodes */ 157 int mnt_writeopcount; /* (i) write syscalls pending */ 158 int mnt_kern_flag; /* (i) kernel only flags */ 159 u_int mnt_flag; /* (i) flags shared with user */ |
160 u_int mnt_noasync; /* (i) # noasync overrides */ |
|
160 struct vfsoptlist *mnt_opt; /* current mount options */ 161 struct vfsoptlist *mnt_optnew; /* new options passed to fs */ 162 int mnt_maxsymlinklen; /* max size of short symlink */ 163 struct statfs mnt_stat; /* cache of filesystem stats */ 164 struct ucred *mnt_cred; /* credentials of mounter */ 165 void * mnt_data; /* private data */ 166 time_t mnt_time; /* last time written*/ 167 int mnt_iosize_max; /* max size for clusters, etc */ --- 130 unchanged lines hidden (view full) --- 298 * and unmounts. 299 * 300 * MNTK_UNMOUNTF permits filesystems to detect a forced unmount while 301 * dounmount() is still waiting to lock the mountpoint. This allows 302 * the filesystem to cancel operations that might otherwise deadlock 303 * with the unmount attempt (used by NFS). 304 */ 305#define MNTK_UNMOUNTF 0x00000001 /* forced unmount in progress */ | 161 struct vfsoptlist *mnt_opt; /* current mount options */ 162 struct vfsoptlist *mnt_optnew; /* new options passed to fs */ 163 int mnt_maxsymlinklen; /* max size of short symlink */ 164 struct statfs mnt_stat; /* cache of filesystem stats */ 165 struct ucred *mnt_cred; /* credentials of mounter */ 166 void * mnt_data; /* private data */ 167 time_t mnt_time; /* last time written*/ 168 int mnt_iosize_max; /* max size for clusters, etc */ --- 130 unchanged lines hidden (view full) --- 299 * and unmounts. 300 * 301 * MNTK_UNMOUNTF permits filesystems to detect a forced unmount while 302 * dounmount() is still waiting to lock the mountpoint. This allows 303 * the filesystem to cancel operations that might otherwise deadlock 304 * with the unmount attempt (used by NFS). 305 */ 306#define MNTK_UNMOUNTF 0x00000001 /* forced unmount in progress */ |
307#define MNTK_ASYNC 0x00000002 /* filtered async flag */ |
|
306#define MNTK_UNMOUNT 0x01000000 /* unmount in progress */ 307#define MNTK_MWAIT 0x02000000 /* waiting for unmount to finish */ 308#define MNTK_SUSPEND 0x08000000 /* request write suspension */ 309#define MNTK_SUSPEND2 0x04000000 /* block secondary writes */ 310#define MNTK_SUSPENDED 0x10000000 /* write operations are suspended */ 311#define MNTK_MPSAFE 0x20000000 /* Filesystem is MPSAFE. */ 312#define MNTK_NOKNOTE 0x80000000 /* Don't send KNOTEs from VOP hooks */ 313#define MNTK_LOOKUP_SHARED 0x40000000 /* FS supports shared lock lookups */ --- 409 unchanged lines hidden --- | 308#define MNTK_UNMOUNT 0x01000000 /* unmount in progress */ 309#define MNTK_MWAIT 0x02000000 /* waiting for unmount to finish */ 310#define MNTK_SUSPEND 0x08000000 /* request write suspension */ 311#define MNTK_SUSPEND2 0x04000000 /* block secondary writes */ 312#define MNTK_SUSPENDED 0x10000000 /* write operations are suspended */ 313#define MNTK_MPSAFE 0x20000000 /* Filesystem is MPSAFE. */ 314#define MNTK_NOKNOTE 0x80000000 /* Don't send KNOTEs from VOP hooks */ 315#define MNTK_LOOKUP_SHARED 0x40000000 /* FS supports shared lock lookups */ --- 409 unchanged lines hidden --- |