diff options
| author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-11-28 15:33:38 -0800 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-13 12:34:32 +0200 |
| commit | 11cf819caee98dae9f39c3e8823b2008a5ab74fe (patch) | |
| tree | cf4b458a33f73479c25d2420ebc6d59f4b5b93a3 /Android.mk | |
| parent | 174101b5a23d0ad5c8bff45348585d947f17ca1d (diff) | |
f2fs: do not activate auto_recovery for fallocated i_size
If a file needs to keep its i_size by fallocate, we need to turn off auto
recovery during roll-forward recovery.
This will resolve the below scenario.
1. xfs_io -f /mnt/f2fs/file -c "pwrite 0 4096" -c "fsync"
2. xfs_io -f /mnt/f2fs/file -c "falloc -k 4096 4096" -c "fsync"
3. md5sum /mnt/f2fs/file;
4. godown /mnt/f2fs/
5. umount /mnt/f2fs/
6. mount -t f2fs /dev/sdx /mnt/f2fs
7. md5sum /mnt/f2fs/file
Reported-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'Android.mk')
0 files changed, 0 insertions, 0 deletions
