summaryrefslogtreecommitdiff
path: root/create/create.ha
blob: 2c08eec64eeea604d79e1cb450eb3afc984841d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use fmt;
use io;

use gpt;

export fn create(vol: io::file, args: []str) void = {
	// XXX this is a stub

	const vol = gpt::create(vol, 1000);
	defer {
		gpt::chksums(vol);
		gpt::commit(vol)!;
		gpt::finish(vol);
	};
};