~vdupras/duskbsd-qemu

160b1e5b10830f2502099fb99318260715b1758f — Virgil Dupras 8 months ago 010b978
Can read files from DuskBSD's VFS!

Try this:

0 S" hello.txt" bfs :child bfs :open 12 swap IO :readbuf rtype

You should get:

Hello BSD Fi
4 files changed, 4 insertions(+), 2 deletions(-)

M Makefile
M duskos
A hello.txt
M usr/src/sys
M Makefile => Makefile +1 -0
@@ 59,6 59,7 @@ fat.img: mbr.bin $(KEXEC)
	mformat -i $@ ::
	dd if=mbr.bin of=$@ bs=1 count=450 seek=62 skip=62 conv=notrunc
	mcopy -i $@ $(KEXEC) ::kexec
	mcopy -i $@ hello.txt ::hello.txt
	mcopy -sQ -i $@ duskos/fs/* ::

.PHONY: run

M duskos => duskos +1 -1
@@ 1,1 1,1 @@
Subproject commit 5a30a6675ce7ed55cd9899e8db2bf3489d2ea575
Subproject commit 537d640514fd967559f10587d60bf2ef7934a5d2

A hello.txt => hello.txt +1 -0
@@ 0,0 1,1 @@
Hello BSD Filesystem!

M usr/src/sys => usr/src/sys +1 -1
@@ 1,1 1,1 @@
Subproject commit 09c0d7caef85a2cf9b9290968f87db393d92bc95
Subproject commit 2b1487a8fe0723baff9936274a7c306bb13140ce