diff options
author | attilio <attilio@FreeBSD.org> | 2012-11-05 15:23:54 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2012-11-05 15:23:54 +0000 |
commit | 908519dd897b1c03e8c993dcc4ba46eb8b94d544 (patch) | |
tree | 5f905d3c8e5478e572f603697c4aaf1732dd12fd /sys/fs/fuse | |
parent | f9e78dd18ac7d0901a06365b22124742c59a71a0 (diff) | |
download | FreeBSD-src-908519dd897b1c03e8c993dcc4ba46eb8b94d544.zip FreeBSD-src-908519dd897b1c03e8c993dcc4ba46eb8b94d544.tar.gz |
fuse_io* must be able to crunch also VDIR vnodes.
Update assert appropriately.
Reported and Tested by: flo
MFC after: 2 months
X-MFC: 241519,242536
Diffstat (limited to 'sys/fs/fuse')
-rw-r--r-- | sys/fs/fuse/fuse_io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/fuse/fuse_io.c b/sys/fs/fuse/fuse_io.c index 8525b23..299aa75 100644 --- a/sys/fs/fuse/fuse_io.c +++ b/sys/fs/fuse/fuse_io.c @@ -122,7 +122,7 @@ fuse_io_dispatch(struct vnode *vp, struct uio *uio, int ioflag, struct fuse_filehandle *fufh; int err, directio; - MPASS(vp->v_type == VREG); + MPASS(vp->v_type == VREG || vp->v_type == VDIR); err = fuse_filehandle_getrw(vp, (uio->uio_rw == UIO_READ) ? FUFH_RDONLY : FUFH_WRONLY, &fufh); @@ -612,7 +612,7 @@ fuse_io_strategy(struct vnode *vp, struct buf *bp) const int biosize = fuse_iosize(vp); - MPASS(vp->v_type == VREG); + MPASS(vp->v_type == VREG || vp->v_type == VDIR); MPASS(bp->b_iocmd == BIO_READ || bp->b_iocmd == BIO_WRITE); FS_DEBUG("inode=%ju offset=%jd resid=%ld\n", (uintmax_t)VTOI(vp), (intmax_t)(((off_t)bp->b_blkno) * biosize), |