Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not crash when handling files of exactly maximum allowed size
Test case: 1) Mount geesefs with --part-sizes 5 2) Reproduce the bug with the following bash script: ``` perl -e 'open FD, ">test-will-die"; sleep 20' & dd if=/dev/zero of=test-will-die oflag=direct bs=1M seek=0 count=200 dd if=/dev/zero of=test-will-die oflag=direct bs=1M seek=49999 count=1 sleep 20 ``` I.e. to reproduce the bug, you should have the last write to an inode end at maximum possible file offset, it should also have more modified data than just the last part, and there should be an open file descriptor for that file.
- Loading branch information