cvs commit: src/sys/sys mdioctl.h src/sys/dev/md md.c
src/sbin/mdconfig mdconfig.8 mdconfig.c
Alfred Perlstein
alfred at freebsd.org
Wed Mar 10 23:38:29 PST 2004
* Colin Percival <colin.percival at wadham.ox.ac.uk> [040310 22:31] wrote:
> At 06:13 11/03/2004, Poul-Henning Kamp wrote:
> >That is a matter of taste more than anything else. A vnode backed md(4)
> >device is technically a layering violation, so either the syncer or
> >the md(4) code itself (or both) needs to be aware of the special case.
>
> <kernelnewbie>
> Is it really necessary for vnode-backed memory disks to be
> accessed through the filesystem? Why can't md(4) hijack the
> disk blocks which constitute the file (telling the filesystem
> not to touch them, of course) and translate I/O operations
> directly into I/O on the underlying device?
> </kernelnewbie>
That would be harder and make it only work on filesystems that
support VOP_BMAP, unless it fell back to VOP_WRITE when BMAP
returned ENOTSUP.
(VOP_BMAP returns the disk locations for a range of a vnode)
Give it a try. :)
--
- Alfred Perlstein
- Research Engineering Development Inc.
- email: bright at mu.org cell: 408-480-4684
More information about the cvs-src
mailing list