solo5 icon indicating copy to clipboard operation
solo5 copied to clipboard

block_attach: check file is aligned

Open reynir opened this issue 2 years ago • 1 comments

Otherwise if the file is not a multiple of block_size (512) we have to make up bytes for the missing part.

reynir avatar Sep 08 '22 10:09 reynir

After testing it turns out that unlike mirage-block-unix solo5 doesn't conjure up magic zero bytes but instead "truncates" the block device. That is, a 1000 byte file will be seen as a block device consisting of a single 512 byte sector(!)

reynir avatar Sep 09 '22 14:09 reynir

Thanks!

dinosaure avatar Nov 04 '22 14:11 dinosaure