summaryrefslogtreecommitdiff
path: root/main.ha
blob: c9e82c337b973ea23da7271db49133a585d068f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use fmt;
use bfs;
use io;
use fs;
use os;

export fn main() void = {
	//const file = os::open("fs.img", fs::flags::RDWR)!;
	//defer io::close(file)!;
	//const filesystem = bfs::open(file)!;
	//defer bfs::close(filesystem)!;

	//for (let i = 150; i <= 190; i += 1)
	//	bfs::freeinode(filesystem, i: u64)!;
	//bfs::freeinode(filesystem, 1484)!;
	//bfs::freeinode(filesystem, 1485)!;
	//bfs::freeinode(filesystem, 1486)!;
	//bfs::freeinode(filesystem, 1487)!;
	//const inid = bfs::allocinode(filesystem)!;
	//const blockid = bfs::allocblock(filesystem)!;
	//bfs::bootsector_make(filesystem.bootsector, 1);
	//fmt::println(inid)!;
	//bfs::allocblock(filesystem)!;
	// bfs::freeblock(filesystem, 8)!;
	// bfs::freeblock(filesystem, 9)!;
	// bfs::freeblock(filesystem, 10)!;
	return;
};