All of lore.kernel.org
 help / color / mirror / Atom feed
* Could we get an IOCB_NO_READ_HOLE?
@ 2021-09-17 10:27 David Howells
  2021-09-17 10:43 ` David Howells
  0 siblings, 1 reply; 3+ messages in thread
From: David Howells @ 2021-09-17 10:27 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: dhowells, linux-ext4, linux-xfs, linux-fsdevel

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-09-17 11:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-17 10:27 Could we get an IOCB_NO_READ_HOLE? David Howells
2021-09-17 10:43 ` David Howells
2021-09-17 11:04   ` Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.