NOVA is a log-structured file system designed for byte-addressable non-volatile memories, developed at the University of California, San Diego.
423
stars
118
forks
source link
XFSTests generic/285: lseek misbehaves(?) in the presence of holes. #22
Closed
stevenjswanson closed 7 years ago
This is probably related to #21.
This functions creates a file with a hole at the end, and checks the behavior of SEEK_HOLE
https://github.com/NVSL/xfstests/blob/master/src/seek_sanity_test.c#L160
It finds that pos != filsz, which it reported the presence of the hole and only seeked past the first two blocks.
This function https://github.com/NVSL/xfstests/blob/master/src/seek_sanity_test.c#L903
called from here:
https://github.com/NVSL/xfstests/blob/master/src/seek_sanity_test.c#L614
creates a file with the hole at the beginning and then tests SEEK_DATA, which ignores the hole and acts as if the space is allocated.