diff options
Diffstat (limited to 'create')
| -rw-r--r-- | create/create.ha | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/create/create.ha b/create/create.ha new file mode 100644 index 0000000..2c08eec --- /dev/null +++ b/create/create.ha @@ -0,0 +1,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); + }; +}; |
