[BUG] tmpfs:losing data when preallocating space multiple times with fallocate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, all

When using the system call fallocate to pre-allocate more space on the tmpfs file
system, if the kernel returns an error EINTR, the original data on the file will
be lost (it seems to be the beginning of the file every time, the size is one page).

- Test case: https://github.com/abner-chenc/abner/blob/master/fallocate.c
- Kernel commit: b229b6ca5abbd63ff40c1396095b1b36b18139c3
- Arch: x86, loongarch64





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux