Commit | Line | Data |
---|---|---|
da7c5cc6 | 1 | /* |
e9720568 KM |
2 | * Copyright (c) 1982, 1986, 1989 Regents of the University of California. |
3 | * All rights reserved. | |
da7c5cc6 | 4 | * |
b702c21d | 5 | * %sccs.include.redist.c% |
e9720568 | 6 | * |
b702c21d | 7 | * @(#)ufsmount.h 7.7 (Berkeley) %G% |
da7c5cc6 | 8 | */ |
8469a387 BJ |
9 | |
10 | /* | |
11 | * Mount structure. | |
12 | * One allocated on every mount. | |
13 | * Used to find the super block. | |
14 | */ | |
e9720568 KM |
15 | struct ufsmount { |
16 | struct mount *um_mountp; /* vfs structure for this filesystem */ | |
17 | dev_t um_dev; /* device mounted */ | |
18 | struct vnode *um_devvp; /* vnode for block device mounted */ | |
19 | struct fs *um_fs; /* pointer to superblock */ | |
ff9af398 KM |
20 | struct vnode *um_quotas[MAXQUOTAS]; /* pointer to quota files */ |
21 | struct ucred *um_cred[MAXQUOTAS]; /* cred for access to quota file */ | |
22 | time_t um_btime[MAXQUOTAS]; /* block quota time limit */ | |
23 | time_t um_itime[MAXQUOTAS]; /* inode quota time limit */ | |
24 | char um_qflags[MAXQUOTAS]; /* quota specific flags, see below */ | |
9f7af618 | 25 | }; |
e9720568 | 26 | /* |
ff9af398 | 27 | * Flags describing the state of quotas. |
e9720568 | 28 | */ |
ff9af398 KM |
29 | #define QTF_OPENING 0x01 /* Q_QUOTAON in progress */ |
30 | #define QTF_CLOSING 0x02 /* Q_QUOTAOFF in progress */ | |
e9720568 | 31 | |
ff9af398 | 32 | #ifdef KERNEL |
e9720568 | 33 | /* |
ff9af398 | 34 | * Convert mount ptr to ufsmount ptr. |
e9720568 | 35 | */ |
82161bc8 | 36 | #define VFSTOUFS(mp) ((struct ufsmount *)((mp)->mnt_data)) |
ff9af398 | 37 | #endif /* KERNEL */ |