[LTP] [PATCH] fallocate05: Allow ENXIO error from lseek(SEEK_DATA) on empty file
Martin Doucha
mdoucha@suse.cz
Thu Sep 26 14:33:34 CEST 2024
On 26. 09. 24 14:28, Cyril Hrubis wrote:
> Hi!
>> Some filesystems release deallocated blocks in larger chunks.
>> On these filesystems, the whole test file needs to be deallocated
>> to allow the final write to pass. However, lseek(SEEK_DATA) may
>> return ENXIO error if the entire file range from offset to end of file
>> is one large hole. Allow ENXIO error in this special case.
>
> I do not get how is the whole file one hole, we write 10 bytes at the
> end after we punch the hole. Or do I miss something?
Ah, right, sorry, I forgot about that last write. The ENXIO is a side
effect of the last write randomly failing on bcachefs which should be a
kernel bug. I'll reject the patch then.
--
Martin Doucha mdoucha@suse.cz
SW Quality Engineer
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic
More information about the ltp
mailing list