Changeset View
Changeset View
Standalone View
Standalone View
sys/ufs/ufs/ufsmount.h
Show All 37 Lines | |||||
/* | /* | ||||
* Arguments to mount UFS-based filesystems | * Arguments to mount UFS-based filesystems | ||||
*/ | */ | ||||
struct ufs_args { | struct ufs_args { | ||||
char *fspec; /* block special device to mount */ | char *fspec; /* block special device to mount */ | ||||
struct oexport_args export; /* network export information */ | struct oexport_args export; /* network export information */ | ||||
}; | }; | ||||
#ifdef _KERNEL | |||||
#include <sys/_task.h> | #include <sys/_task.h> | ||||
#ifdef _KERNEL | |||||
#ifdef MALLOC_DECLARE | #ifdef MALLOC_DECLARE | ||||
MALLOC_DECLARE(M_UFSMNT); | MALLOC_DECLARE(M_UFSMNT); | ||||
MALLOC_DECLARE(M_TRIM); | MALLOC_DECLARE(M_TRIM); | ||||
#endif | #endif | ||||
#endif /* _KERNEL */ | |||||
struct buf; | struct buf; | ||||
struct inode; | struct inode; | ||||
struct nameidata; | struct nameidata; | ||||
struct taskqueue; | struct taskqueue; | ||||
struct timeval; | struct timeval; | ||||
struct ucred; | struct ucred; | ||||
struct uio; | struct uio; | ||||
struct vnode; | struct vnode; | ||||
struct ufs_extattr_per_mount; | struct ufs_extattr_per_mount; | ||||
struct jblocks; | struct jblocks; | ||||
struct inodedep; | struct inodedep; | ||||
TAILQ_HEAD(inodedeplst, inodedep); | TAILQ_HEAD(inodedeplst, inodedep); | ||||
LIST_HEAD(bmsafemaphd, bmsafemap); | LIST_HEAD(bmsafemaphd, bmsafemap); | ||||
LIST_HEAD(trimlist_hashhead, ffs_blkfree_trim_params); | LIST_HEAD(trimlist_hashhead, ffs_blkfree_trim_params); | ||||
struct fsfail_task { | struct fsfail_task { | ||||
struct task task; | struct task task; | ||||
fsid_t fsid; | fsid_t fsid; | ||||
}; | }; | ||||
#include <sys/_lock.h> | |||||
#include <sys/_mutex.h> | |||||
/* | /* | ||||
* This structure describes the UFS specific mount structure data. | * This structure describes the UFS specific mount structure data. | ||||
* The function operators are used to support different versions of | * The function operators are used to support different versions of | ||||
* UFS (UFS1, UFS2, etc). | * UFS (UFS1, UFS2, etc). | ||||
* | * | ||||
* Lock reference: | * Lock reference: | ||||
* c - set at allocation then constant until freed | * c - set at allocation then constant until freed | ||||
* i - ufsmount interlock (UFS_LOCK / UFS_UNLOCK) | * i - ufsmount interlock (UFS_LOCK / UFS_UNLOCK) | ||||
▲ Show 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Macros to access filesystem parameters in the ufsmount structure. | * Macros to access filesystem parameters in the ufsmount structure. | ||||
* Used by ufs_bmap. | * Used by ufs_bmap. | ||||
*/ | */ | ||||
#define MNINDIR(ump) ((ump)->um_nindir) | #define MNINDIR(ump) ((ump)->um_nindir) | ||||
#define blkptrtodb(ump, b) ((b) << (ump)->um_bptrtodb) | #define blkptrtodb(ump, b) ((b) << (ump)->um_bptrtodb) | ||||
#define is_sequential(ump, a, b) ((b) == (a) + ump->um_seqinc) | #define is_sequential(ump, a, b) ((b) == (a) + ump->um_seqinc) | ||||
#endif /* _KERNEL */ | |||||
#endif | #endif |