Truncate file when generating sfsimg

master
Jiajie Chen 6 years ago
parent 585eb6197a
commit 351d38241f

@ -74,6 +74,7 @@ fn main() {
.read(true)
.write(true)
.create(true)
.truncate(true)
.open(&opt.image)
.expect("failed to open image");
let device = Mutex::new(file);

Loading…
Cancel
Save