<runtime ram="32M" caps="1000" binary="init">

	<fail after_seconds="30"/>
	<succeed>child "test-libc_vfs" exited with exit value 0</succeed>
	<fail>[init -> test-libc_vfs] Error: </fail>

	<content>
		<rom label="ld.lib.so"/>
		<rom label="libc.lib.so"/>
		<rom label="vfs.lib.so"/>
		<rom label="vfs"/>
		<rom label="test-libc_vfs"/>
	</content>

	<config>
		<parent-provides>
			<service name="ROM"/>
			<service name="PD"/>
			<service name="RM"/>
			<service name="CPU"/>
			<service name="LOG"/>
		</parent-provides>
		<default-route>
			<any-service> <parent/> <any-child/> </any-service>
		</default-route>
		<default caps="100"/>
		<start name="vfs1">
			<binary name="vfs"/>
			<resource name="RAM" quantum="12M"/>
			<provides> <service name="File_system"/> </provides>
			<config>
				<vfs> <ram/> </vfs>
				<default-policy root="/" writeable="yes"/>
			</config>
		</start>
		<start name="vfs2">
			<binary name="vfs"/>
			<resource name="RAM" quantum="12M"/>
			<provides> <service name="File_system"/> </provides>
			<config>
				<vfs> <fs/> </vfs>
				<default-policy root="/" writeable="yes"/>
			</config>
			<route>
				<service name="File_system"><child name="vfs1"/></service>
				<any-service> <parent/> <any-child/> </any-service>
			</route>
		</start>
		<start name="test-libc_vfs">
			<resource name="RAM" quantum="4M"/>
			<config>
				<iterations value="1"/>
				<write-read size="1M" buffer_size="8K"/>
				<vfs>
					<dir name="tmp"> <fs/> </dir>
					<dir name="dev"> <log/> </dir>
				</vfs>
				<libc stdout="/dev/log" cwd="/tmp"/>
			</config>
			<route>
				<service name="File_system"><child name="vfs2"/></service>
				<any-service> <parent/> <any-child/> </any-service>
			</route>
		</start>
	</config>
</runtime>
