lkml.org 
[lkml]   [2018]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH 00/10] iov_iter: Add new iters and use with AFS
    Date
    Matthew Wilcox <willy@infradead.org> wrote:

    > > (5) Add an ITER_DISCARD iterator type. This provides an iterator that
    > > simply discards anything written to it. It cannot be used as a data
    > > source.
    >
    > May I suggest an ITER_ZERO iterator type instead? It acts like /dev/zero;
    > writes are discarded (as you have here) and reads return zeroes.
    > I've wanted such a thing in the past, but got distracted away from
    > that project.

    I thought about that, but the zero-filling is not as easy to implement as the
    discard side - plus I don't have any use case to test it with.

    Do you have a use case in mind?

    David

    \
     
     \ /
      Last update: 2018-09-13 18:18    [W:4.700 / U:0.132 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site