mount struct prefixes go from m_ to mnt_ and M_ to MNT_
[unix-history] / usr / src / sys / ufs / ffs / ufsmount.h
CommitLineData
da7c5cc6 1/*
e9720568
KM
2 * Copyright (c) 1982, 1986, 1989 Regents of the University of California.
3 * All rights reserved.
da7c5cc6 4 *
e9720568
KM
5 * Redistribution and use in source and binary forms are permitted
6 * provided that the above copyright notice and this paragraph are
7 * duplicated in all such forms and that any documentation,
8 * advertising materials, and other materials related to such
9 * distribution and use acknowledge that the software was developed
10 * by the University of California, Berkeley. The name of the
11 * University may not be used to endorse or promote products derived
12 * from this software without specific prior written permission.
13 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16 *
82161bc8 17 * @(#)ufsmount.h 7.6 (Berkeley) %G%
da7c5cc6 18 */
8469a387
BJ
19
20/*
21 * Mount structure.
22 * One allocated on every mount.
23 * Used to find the super block.
24 */
e9720568
KM
25struct ufsmount {
26 struct mount *um_mountp; /* vfs structure for this filesystem */
27 dev_t um_dev; /* device mounted */
28 struct vnode *um_devvp; /* vnode for block device mounted */
29 struct fs *um_fs; /* pointer to superblock */
ff9af398
KM
30 struct vnode *um_quotas[MAXQUOTAS]; /* pointer to quota files */
31 struct ucred *um_cred[MAXQUOTAS]; /* cred for access to quota file */
32 time_t um_btime[MAXQUOTAS]; /* block quota time limit */
33 time_t um_itime[MAXQUOTAS]; /* inode quota time limit */
34 char um_qflags[MAXQUOTAS]; /* quota specific flags, see below */
9f7af618 35};
e9720568 36/*
ff9af398 37 * Flags describing the state of quotas.
e9720568 38 */
ff9af398
KM
39#define QTF_OPENING 0x01 /* Q_QUOTAON in progress */
40#define QTF_CLOSING 0x02 /* Q_QUOTAOFF in progress */
e9720568 41
ff9af398 42#ifdef KERNEL
e9720568 43/*
ff9af398 44 * Convert mount ptr to ufsmount ptr.
e9720568 45 */
82161bc8 46#define VFSTOUFS(mp) ((struct ufsmount *)((mp)->mnt_data))
ff9af398 47#endif /* KERNEL */