Re: How does READ_PLUS differ from READ?

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

 



On Sun, 19 Nov 2023 at 19:02, Anna Schumaker <schumaker.anna@xxxxxxxxx> wrote:
>
> On Sun, Nov 19, 2023 at 12:59 PM Cedric Blancher
> <cedric.blancher@xxxxxxxxx> wrote:
> >
> > On Sun, 19 Nov 2023 at 18:48, Anna Schumaker <schumaker.anna@xxxxxxxxx> wrote:
> > >
> > > Hi,
> > >
> > > On Sun, Nov 19, 2023 at 12:38 PM Cedric Blancher
> > > <cedric.blancher@xxxxxxxxx> wrote:
> > > >
> > > > Good evening!
> > > >
> > > > How does READ_PLUS differ from READ? Has anyone made a simpler
> > > > presentation (PowerPoint slides) than the RFCs?
> > >
> > > No slides, but at a high level READ_PLUS can compress out long ranges
> > > of zeroes in a read reply by returning a HOLE segment instead of the
> > > actual zeroes. It's perfectly valid for the server to skip the zero
> > > detection and return everything as a data segment, however.
> >
> > So how do you differ between
> > 1. a hole, aka no filesystem blocks allocated
> > 2. a long sequence of valid data with all zero bytes in them
>
> That's up to the server! It could use something like fiemap or lseek
> with SEEK_HOLE or SEEK_DATA. It could also scan the data to see if
> there are any zeroes that could be compressed out.

How can the client figure out whether the data in a READ_PLUS reply
are zeros of data, or zeros from a hole?

Ced
-- 
Cedric Blancher <cedric.blancher@xxxxxxxxx>
[https://plus.google.com/u/0/+CedricBlancher/]
Institute Pasteur





[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux