[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <2315872.1631874463@warthog.procyon.org.uk>
Date: Fri, 17 Sep 2021 11:27:43 +0100
From: David Howells <dhowells@...hat.com>
To: Christoph Hellwig <hch@....de>
cc: dhowells@...hat.com, linux-ext4@...r.kernel.org,
linux-xfs@...r.kernel.org, linux-fsdevel@...r.kernel.org
Subject: Could we get an IOCB_NO_READ_HOLE?
Hi Christoph,
Would it be possible to get an IOCB_NO_READ_HOLE flag that causes a read to
either fail entirely if there's a hole in the file or to stop at the hole,
possibly returning -ENODATA if the hole is at the front of the file?
Looking at iomap_dio_iter(), IOMAP_HOLE should be enabled in
iomap_iter::iomap.type for this? Is it that simple?
David
Powered by blists - more mailing lists