|
|
1.1 root 1: /*
2: * Copyright (c) 1982, 1986, 1989 Regents of the University of California.
3: * All rights reserved.
4: *
5: * Redistribution is only permitted until one year after the first shipment
6: * of 4.4BSD by the Regents. Otherwise, redistribution and use in source and
7: * binary forms are permitted provided that: (1) source distributions retain
8: * this entire copyright notice and comment, and (2) distributions including
9: * binaries display the following acknowledgement: This product includes
10: * software developed by the University of California, Berkeley and its
11: * contributors'' in the documentation or other materials provided with the
12: * distribution and in all advertising materials mentioning features or use
13: * of this software. Neither the name of the University nor the names of
14: * its contributors may be used to endorse or promote products derived from
15: * this software without specific prior written permission.
16: * THIS SOFTWARE IS PROVIDED AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
17: * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
18: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19: *
20: * @(#)ufsmount.h 7.7 (Berkeley) 6/28/90
21: */
22:
23: /*
24: * Mount structure.
25: * One allocated on every mount.
26: * Used to find the super block.
27: */
28: struct ufsmount {
29: struct mount *um_mountp; /* vfs structure for this filesystem */
30: dev_t um_dev; /* device mounted */
31: struct vnode *um_devvp; /* vnode for block device mounted */
32: struct fs *um_fs; /* pointer to superblock */
33: struct vnode *um_quotas[MAXQUOTAS]; /* pointer to quota files */
34: struct ucred *um_cred[MAXQUOTAS]; /* cred for access to quota file */
35: time_t um_btime[MAXQUOTAS]; /* block quota time limit */
36: time_t um_itime[MAXQUOTAS]; /* inode quota time limit */
37: char um_qflags[MAXQUOTAS]; /* quota specific flags, see below */
38: };
39: /*
40: * Flags describing the state of quotas.
41: */
42: #define QTF_OPENING 0x01 /* Q_QUOTAON in progress */
43: #define QTF_CLOSING 0x02 /* Q_QUOTAOFF in progress */
44:
45: #ifdef KERNEL
46: /*
47: * Convert mount ptr to ufsmount ptr.
48: */
49: #define VFSTOUFS(mp) ((struct ufsmount *)((mp)->mnt_data))
50: #endif /* KERNEL */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.