Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/msdosfs/denode.h
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | |||||
* functioning of this software in any circumstances and is not liable for | * functioning of this software in any circumstances and is not liable for | ||||
* any damages caused by this software. | * any damages caused by this software. | ||||
* | * | ||||
* October 1992 | * October 1992 | ||||
*/ | */ | ||||
#ifndef _FS_MSDOSFS_DENODE_H_ | #ifndef _FS_MSDOSFS_DENODE_H_ | ||||
#define _FS_MSDOSFS_DENODE_H_ | #define _FS_MSDOSFS_DENODE_H_ | ||||
#include <sys/buf.h> | |||||
/* | /* | ||||
* This is the pc filesystem specific portion of the vnode structure. | * This is the pc filesystem specific portion of the vnode structure. | ||||
* | * | ||||
* To describe a file uniquely the de_dirclust, de_diroffset, and | * To describe a file uniquely the de_dirclust, de_diroffset, and | ||||
* de_StartCluster fields are used. | * de_StartCluster fields are used. | ||||
* | * | ||||
* de_dirclust contains the cluster number of the directory cluster | * de_dirclust contains the cluster number of the directory cluster | ||||
* containing the entry for a file or directory. | * containing the entry for a file or directory. | ||||
▲ Show 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | #define fc_setcache(dep, slot, frcn, fsrcn) \ | ||||
(dep)->de_fc[(slot)].fc_fsrcn = (fsrcn); | (dep)->de_fc[(slot)].fc_fsrcn = (fsrcn); | ||||
/* | /* | ||||
* This is the in memory variant of a dos directory entry. It is usually | * This is the in memory variant of a dos directory entry. It is usually | ||||
* contained within a vnode. | * contained within a vnode. | ||||
*/ | */ | ||||
struct denode { | struct denode { | ||||
struct vnode *de_vnode; /* addr of vnode we are part of */ | struct vnode *de_vnode; /* addr of vnode we are part of */ | ||||
struct vn_clusterw de_clusterw; /* buffer clustering information */ | |||||
mckusick: Add comment /* Buffer clustering information */ | |||||
u_long de_flag; /* flag bits */ | u_long de_flag; /* flag bits */ | ||||
u_long de_dirclust; /* cluster of the directory file containing this entry */ | u_long de_dirclust; /* cluster of the directory file containing this entry */ | ||||
u_long de_diroffset; /* offset of this entry in the directory cluster */ | u_long de_diroffset; /* offset of this entry in the directory cluster */ | ||||
u_long de_fndoffset; /* offset of found dir entry */ | u_long de_fndoffset; /* offset of found dir entry */ | ||||
int de_fndcnt; /* number of slots before de_fndoffset */ | int de_fndcnt; /* number of slots before de_fndoffset */ | ||||
long de_refcnt; /* reference count */ | long de_refcnt; /* reference count */ | ||||
struct msdosfsmount *de_pmp; /* addr of our mount struct */ | struct msdosfsmount *de_pmp; /* addr of our mount struct */ | ||||
u_char de_Name[12]; /* name, from DOS directory entry */ | u_char de_Name[12]; /* name, from DOS directory entry */ | ||||
▲ Show 20 Lines • Show All 113 Lines • ▼ Show 20 Lines | |||||
int msdosfs_lookup(struct vop_cachedlookup_args *); | int msdosfs_lookup(struct vop_cachedlookup_args *); | ||||
int msdosfs_inactive(struct vop_inactive_args *); | int msdosfs_inactive(struct vop_inactive_args *); | ||||
int msdosfs_reclaim(struct vop_reclaim_args *); | int msdosfs_reclaim(struct vop_reclaim_args *); | ||||
#endif | #endif | ||||
/* | /* | ||||
* Internal service routine prototypes. | * Internal service routine prototypes. | ||||
*/ | */ | ||||
struct componentname; | |||||
int deget(struct msdosfsmount *, u_long, u_long, struct denode **); | int deget(struct msdosfsmount *, u_long, u_long, struct denode **); | ||||
int uniqdosname(struct denode *, struct componentname *, u_char *); | int uniqdosname(struct denode *, struct componentname *, u_char *); | ||||
int readep(struct msdosfsmount *pmp, u_long dirclu, u_long dirofs, struct buf **bpp, struct direntry **epp); | int readep(struct msdosfsmount *pmp, u_long dirclu, u_long dirofs, struct buf **bpp, struct direntry **epp); | ||||
int readde(struct denode *dep, struct buf **bpp, struct direntry **epp); | int readde(struct denode *dep, struct buf **bpp, struct direntry **epp); | ||||
int deextend(struct denode *dep, u_long length, struct ucred *cred); | int deextend(struct denode *dep, u_long length, struct ucred *cred); | ||||
int fillinusemap(struct msdosfsmount *pmp); | int fillinusemap(struct msdosfsmount *pmp); | ||||
void reinsert(struct denode *dep); | void reinsert(struct denode *dep); | ||||
int dosdirempty(struct denode *dep); | int dosdirempty(struct denode *dep); | ||||
int createde(struct denode *dep, struct denode *ddep, struct denode **depp, struct componentname *cnp); | int createde(struct denode *dep, struct denode *ddep, struct denode **depp, struct componentname *cnp); | ||||
int deupdat(struct denode *dep, int waitfor); | int deupdat(struct denode *dep, int waitfor); | ||||
int removede(struct denode *pdep, struct denode *dep); | int removede(struct denode *pdep, struct denode *dep); | ||||
int detrunc(struct denode *dep, u_long length, int flags, struct ucred *cred); | int detrunc(struct denode *dep, u_long length, int flags, struct ucred *cred); | ||||
int doscheckpath( struct denode *source, struct denode *target); | int doscheckpath( struct denode *source, struct denode *target); | ||||
#endif /* _KERNEL || MAKEFS */ | #endif /* _KERNEL || MAKEFS */ | ||||
#endif /* !_FS_MSDOSFS_DENODE_H_ */ | #endif /* !_FS_MSDOSFS_DENODE_H_ */ |
Add comment /* Buffer clustering information */