Changeset View
Changeset View
Standalone View
Standalone View
sys/ufs/ufs/ufsmount.h
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | struct ufsmount { | ||||
struct vnode *um_odevvp; /* (r) devfs dev vnode */ | struct vnode *um_odevvp; /* (r) devfs dev vnode */ | ||||
struct vnode *um_devvp; /* (r) mntfs private vnode */ | struct vnode *um_devvp; /* (r) mntfs private vnode */ | ||||
u_long um_fstype; /* (c) type of filesystem */ | u_long um_fstype; /* (c) type of filesystem */ | ||||
struct fs *um_fs; /* (r) pointer to superblock */ | struct fs *um_fs; /* (r) pointer to superblock */ | ||||
struct ufs_extattr_per_mount um_extattr; /* (c) extended attrs */ | struct ufs_extattr_per_mount um_extattr; /* (c) extended attrs */ | ||||
u_long um_nindir; /* (c) indirect ptrs per blk */ | u_long um_nindir; /* (c) indirect ptrs per blk */ | ||||
u_long um_bptrtodb; /* (c) indir disk block ptr */ | u_long um_bptrtodb; /* (c) indir disk block ptr */ | ||||
u_long um_seqinc; /* (c) inc between seq blocks */ | u_long um_seqinc; /* (c) inc between seq blocks */ | ||||
uint64_t um_maxsymlinklen; /* (c) max size of short | |||||
symlink */ | |||||
struct mtx um_lock; /* (c) Protects ufsmount & fs */ | struct mtx um_lock; /* (c) Protects ufsmount & fs */ | ||||
pid_t um_fsckpid; /* (u) PID can do fsck sysctl */ | pid_t um_fsckpid; /* (u) PID can do fsck sysctl */ | ||||
struct mount_softdeps *um_softdep; /* (c) softdep mgmt structure */ | struct mount_softdeps *um_softdep; /* (c) softdep mgmt structure */ | ||||
struct vnode *um_quotas[MAXQUOTAS]; /* (q) pointer to quota files */ | struct vnode *um_quotas[MAXQUOTAS]; /* (q) pointer to quota files */ | ||||
struct ucred *um_cred[MAXQUOTAS]; /* (q) quota file access cred */ | struct ucred *um_cred[MAXQUOTAS]; /* (q) quota file access cred */ | ||||
time_t um_btime[MAXQUOTAS]; /* (q) block quota time limit */ | time_t um_btime[MAXQUOTAS]; /* (q) block quota time limit */ | ||||
time_t um_itime[MAXQUOTAS]; /* (q) inode quota time limit */ | time_t um_itime[MAXQUOTAS]; /* (q) inode quota time limit */ | ||||
char um_qflags[MAXQUOTAS]; /* (i) quota specific flags */ | char um_qflags[MAXQUOTAS]; /* (i) quota specific flags */ | ||||
int64_t um_savedmaxfilesize; /* (c) track maxfilesize */ | int64_t um_savedmaxfilesize; /* (c) track maxfilesize */ | ||||
u_int um_flags; /* (i) filesystem flags */ | u_int um_flags; /* (i) filesystem flags */ | ||||
struct timeval um_last_fullmsg; /* (i) last full msg time */ | struct timeval um_last_fullmsg; /* (i) last full msg time */ | ||||
int um_secs_fullmsg; /* (i) seconds since full msg */ | int um_secs_fullmsg; /* (i) seconds since full msg */ | ||||
struct timeval um_last_integritymsg; /* (i) last integrity msg */ | struct timeval um_last_integritymsg; /* (i) last integrity msg */ | ||||
int um_secs_integritymsg; /* (i) secs since integ msg */ | int um_secs_integritymsg; /* (i) secs since integ msg */ | ||||
u_int um_trim_inflight; /* (i) outstanding trim count */ | u_int um_trim_inflight; /* (i) outstanding trim count */ | ||||
mckusick: This belongs with the other constant fields near top of ufsmount structure. I recommend… | |||||
u_int um_trim_inflight_blks; /* (i) outstanding trim blks */ | u_int um_trim_inflight_blks; /* (i) outstanding trim blks */ | ||||
u_long um_trim_total; /* (i) total trim count */ | u_long um_trim_total; /* (i) total trim count */ | ||||
u_long um_trim_total_blks; /* (i) total trim block count */ | u_long um_trim_total_blks; /* (i) total trim block count */ | ||||
struct taskqueue *um_trim_tq; /* (c) trim request queue */ | struct taskqueue *um_trim_tq; /* (c) trim request queue */ | ||||
struct trimlist_hashhead *um_trimhash; /* (i) trimlist hash table */ | struct trimlist_hashhead *um_trimhash; /* (i) trimlist hash table */ | ||||
u_long um_trimlisthashsize; /* (i) trim hash table size-1 */ | u_long um_trimlisthashsize; /* (i) trim hash table size-1 */ | ||||
struct fsfail_task *um_fsfail_task; /* (i) task for fsfail cleanup*/ | struct fsfail_task *um_fsfail_task; /* (i) task for fsfail cleanup*/ | ||||
/* (c) - below function ptrs */ | /* (c) - below function ptrs */ | ||||
▲ Show 20 Lines • Show All 62 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) | ||||
/* true if old FS format...*/ | |||||
#define OFSFMT(vp) (VFSTOUFS((vp)->v_mount)->um_maxsymlinklen <= 0) | |||||
#endif | #endif |
This belongs with the other constant fields near top of ufsmount structure. I recommend following um_nindir. Also needs (c) at start of its comment.