version 1.4.2.3, 2004/08/24 17:57:37 |
version 1.4.2.4, 2004/09/18 14:52:49 |
Line 88 struct genfs_ops msdosfs_genfsops = { |
|
Line 88 struct genfs_ops msdosfs_genfsops = { |
|
genfs_gop_write, |
genfs_gop_write, |
}; |
}; |
|
|
static struct denode *msdosfs_hashget __P((dev_t, u_long, u_long, struct lwp *)); |
static struct denode *msdosfs_hashget __P((dev_t, u_long, u_long)); |
static void msdosfs_hashins __P((struct denode *)); |
static void msdosfs_hashins __P((struct denode *)); |
static void msdosfs_hashrem __P((struct denode *)); |
static void msdosfs_hashrem __P((struct denode *)); |
|
|
|
|
} |
} |
|
|
static struct denode * |
static struct denode * |
msdosfs_hashget(dev, dirclust, diroff, l) |
msdosfs_hashget(dev, dirclust, diroff) |
dev_t dev; |
dev_t dev; |
u_long dirclust; |
u_long dirclust; |
u_long diroff; |
u_long diroff; |
struct lwp *l; |
|
{ |
{ |
struct denode *dep; |
struct denode *dep; |
struct vnode *vp; |
struct vnode *vp; |
Line 255 deget(pmp, dirclust, diroffset, depp) |
|
Line 254 deget(pmp, dirclust, diroffset, depp) |
|
* entry that represented the file happens to be reused while the |
* entry that represented the file happens to be reused while the |
* deleted file is still open. |
* deleted file is still open. |
*/ |
*/ |
ldep = msdosfs_hashget(pmp->pm_dev, dirclust, diroffset, curlwp); |
ldep = msdosfs_hashget(pmp->pm_dev, dirclust, diroffset); |
if (ldep) { |
if (ldep) { |
*depp = ldep; |
*depp = ldep; |
return (0); |
return (0); |
Line 384 deupdat(dep, waitfor) |
|
Line 383 deupdat(dep, waitfor) |
|
* Truncate the file described by dep to the length specified by length. |
* Truncate the file described by dep to the length specified by length. |
*/ |
*/ |
int |
int |
detrunc(dep, length, flags, cred, l) |
detrunc(dep, length, flags, cred, p) |
struct denode *dep; |
struct denode *dep; |
u_long length; |
u_long length; |
int flags; |
int flags; |
struct ucred *cred; |
struct ucred *cred; |
struct lwp *l; |
struct proc *p; |
{ |
{ |
int error; |
int error; |
int allerror; |
int allerror; |
Line 638 msdosfs_inactive(v) |
|
Line 637 msdosfs_inactive(v) |
|
struct vnode *a_vp; |
struct vnode *a_vp; |
struct proc *a_p; |
struct proc *a_p; |
} */ *ap = v; |
} */ *ap = v; |
struct lwp *l = ap->a_l; |
struct proc *p = ap->a_p; |
struct vnode *vp = ap->a_vp; |
struct vnode *vp = ap->a_vp; |
struct denode *dep = VTODE(vp); |
struct denode *dep = VTODE(vp); |
int error = 0; |
int error = 0; |
|
|
vp->v_usecount, dep->de_Name[0]); |
vp->v_usecount, dep->de_Name[0]); |
#endif |
#endif |
if (dep->de_Name[0] == SLOT_DELETED) |
if (dep->de_Name[0] == SLOT_DELETED) |
vrecycle(vp, (struct simplelock *)0, l); |
vrecycle(vp, (struct simplelock *)0, p); |
return (error); |
return (error); |
} |
} |
|
|