simplefs icon indicating copy to clipboard operation
simplefs copied to clipboard

Input/output error

Open HotMercury opened this issue 1 year ago • 5 comments

If I fill the image with /dev/random, command touch or mkdir will error

$ dd if=/dev/random of=test.img bs=1M count=32 

and then

$ touch test.txt

the error message comes up

touch: cannot touch 'test.txt': Input/output error

HotMercury avatar May 08 '24 09:05 HotMercury

If I fill the image with /dev/random, command touch or mkdir will error

Did you run mkfs.simplefs before mounting the image file?

jserv avatar May 08 '24 10:05 jserv

Yes, following is my detail actions

$ dd if=/dev/random of=test.img bs=1M count=32
$ ./mkfs.simplefs test.img
$ mkdir test
$ sudo mount -t simplefs -o loop test.img test
$ cd test
[test] $ touch test.txt

the error message comes up, but if I replace /dev/random with /dev/zero, it will work correctly.

HotMercury avatar May 08 '24 11:05 HotMercury

Close via #51

jserv avatar May 18 '24 15:05 jserv