[RFC] [PATCH] VM & VFS changes

Poul-Henning Kamp phk at phk.freebsd.dk
Wed Jun 1 12:57:41 GMT 2005


In message <20050601083308.D69811 at lexi.siliconlandmark.com>, Andre Guibert de B
ruet writes:

>> This problem is a bit complicated because there can be various
>> combinations of:
>>
>> 	mounted file systems that reside on swap-backed memory disks
>>
>> 	mounted file systems that reside on vnode-backed memory disks
>>
>> 	vnode-backed memory disks used as swap devices

Maybe the simplest solution is also the best:  keep track of the
dependencies and do the cleanup leaf->root on the resulting tree.

It would not take much more than a simple data structure to let
the various pieces of code (mainly md(4) really) say "this device
depends on this other thing".

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-current mailing list