Skip to content

Extra zeros at the end of files with FUSE #1111

@mkroening

Description

@mkroening

This program

fn main() {
    std::fs::write("/root/test.txt", "important content").unwrap();
}

writes extra zeros to the end of the file:

$ od -t x1 foo/test.txt 
0000000 69 6d 70 6f 72 74 61 6e 74 20 63 6f 6e 74 65 6e
0000020 74 00 00 00 00 00 00 00
0000030

expected:

$ od -t x1 foo/test.txt 
0000000 69 6d 70 6f 72 74 61 6e 74 20 63 6f 6e 74 65 6e
0000020 74
0000021

Bisecting fails since not all of #1047 's commits compile!

There are only 'skip'ped commits left to test.
The first bad commit could be any of:
a2212c010250c69ce581a9459683ae14a7b963ef
fbb5789508286aa5a019f8b9e5371c3ecbf108d2
24c425b5e825ca5e2c91bdd863df9b5cdf33717f
3a93d4a843fa9e9af340ff4432f461265d90f508
f13bf48f06817a2a44f5dc903f4cd8ac8163fe2a
We cannot bisect more!

This can be replicated by editing hello_world in hermit-rs and running

cargo xtask ci qemu --arch x86_64 --profile dev --package hello_world --virtiofsd

CC: @cagatay-y

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions