Add a quick format option for mkfat32
Added open implementation Needed to return a pointer to the file system as `@fieldParentPtr(Fat32Self, "instance", fs.instance)` doesn't work as the the pointer to `instance` is on the stack, then goes out of scope when the init is returned. So will be using free stack space. Part of #216 Spelling, doc comments and extra test for open file init -> create, deinit -> destroy
This commit is contained in:
parent
48e0779d84
commit
d5de173fd3
4 changed files with 419 additions and 60 deletions
|
|
@ -217,7 +217,7 @@ const Fat32BuilderStep = struct {
|
|||
// If there was an error, delete the image as this will be invalid
|
||||
errdefer (std.fs.cwd().deleteFile(self.out_file_path) catch unreachable);
|
||||
defer image.close();
|
||||
try Fat32.make(self.options, image);
|
||||
try Fat32.make(self.options, image, false);
|
||||
}
|
||||
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue