diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-06-28 12:24:54 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-06-28 12:24:54 +0200 |
commit | 8ac60e9b961f12acfe300258700522b02c06a50c (patch) | |
tree | ae7044aef1318735cad5cb508c0776fc64460416 /tests/fstree_init.c | |
parent | 62c596a761d9a511bbf908de36e51dc76b5e3340 (diff) |
Fix inode fragment & sparse counter initialization
The sparse attribute should be initialized with 0. It is subtracted
from the file size in the kernel to determine the file size on disk
to report to stat(2). So it actually didn't matter anyway (just for
correctness sake).
Second, the fragment index and offset should be set to 0xFFFFFFFF in
the rare case that no fragments exist.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/fstree_init.c')
0 files changed, 0 insertions, 0 deletions