Re: [PATCH 2/6] file-posix: Allow lseek at offset 0 when !want_zero

2025-04-15 Thread Vladimir Sementsov-Ogievskiy
On 15.04.25 18:22, Eric Blake wrote: On Tue, Apr 15, 2025 at 03:37:39PM +0300, Vladimir Sementsov-Ogievskiy wrote: On 14.04.25 21:12, Eric Blake wrote: On Mon, Apr 14, 2025 at 08:05:21PM +0300, Vladimir Sementsov-Ogievskiy wrote: On 11.04.25 04:04, Eric Blake wrote: The 'want_zero' parameter

Re: [PATCH 2/6] file-posix: Allow lseek at offset 0 when !want_zero

2025-04-15 Thread Eric Blake
On Tue, Apr 15, 2025 at 03:37:39PM +0300, Vladimir Sementsov-Ogievskiy wrote: > On 14.04.25 21:12, Eric Blake wrote: > > On Mon, Apr 14, 2025 at 08:05:21PM +0300, Vladimir Sementsov-Ogievskiy > > wrote: > > > On 11.04.25 04:04, Eric Blake wrote: > > > > The 'want_zero' parameter to raw_co_block_st

Re: [PATCH 2/6] file-posix: Allow lseek at offset 0 when !want_zero

2025-04-15 Thread Vladimir Sementsov-Ogievskiy
On 14.04.25 21:12, Eric Blake wrote: On Mon, Apr 14, 2025 at 08:05:21PM +0300, Vladimir Sementsov-Ogievskiy wrote: On 11.04.25 04:04, Eric Blake wrote: The 'want_zero' parameter to raw_co_block_status() was added so that we can avoid potentially time-consuming lseek(SEEK_DATA) calls throughout

Re: [PATCH 2/6] file-posix: Allow lseek at offset 0 when !want_zero

2025-04-14 Thread Eric Blake
On Mon, Apr 14, 2025 at 08:05:21PM +0300, Vladimir Sementsov-Ogievskiy wrote: > On 11.04.25 04:04, Eric Blake wrote: > > The 'want_zero' parameter to raw_co_block_status() was added so that > > we can avoid potentially time-consuming lseek(SEEK_DATA) calls > > throughout the file (working around po

Re: [PATCH 2/6] file-posix: Allow lseek at offset 0 when !want_zero

2025-04-14 Thread Vladimir Sementsov-Ogievskiy
On 11.04.25 04:04, Eric Blake wrote: The 'want_zero' parameter to raw_co_block_status() was added so that we can avoid potentially time-consuming lseek(SEEK_DATA) calls throughout the file (working around poor filesystems that have O(n) rather than O(1) extent probing). But when it comes to lear

[PATCH 2/6] file-posix: Allow lseek at offset 0 when !want_zero

2025-04-10 Thread Eric Blake
The 'want_zero' parameter to raw_co_block_status() was added so that we can avoid potentially time-consuming lseek(SEEK_DATA) calls throughout the file (working around poor filesystems that have O(n) rather than O(1) extent probing). But when it comes to learning if a file is completely sparse (fo