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 | * |
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 | * | |
0be7b219 | 17 | * @(#)ufsmount.h 7.4 (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 |
25 | struct 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 */ | |
30 | struct inode *um_qinod; /* QUOTA: pointer to quota file */ | |
9f7af618 BJ |
31 | }; |
32 | #ifdef KERNEL | |
e9720568 KM |
33 | /* |
34 | * Convert mount ptr to ufsmount ptr. | |
35 | */ | |
36 | #define VFSTOUFS(mp) ((struct ufsmount *)((mp)->m_data)) | |
37 | ||
38 | /* | |
39 | * mount table | |
40 | */ | |
41 | extern struct ufsmount mounttab[NMOUNT]; | |
42 | ||
9f7af618 | 43 | #endif |