lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <17352.1536855503@warthog.procyon.org.uk>
Date:   Thu, 13 Sep 2018 17:18:23 +0100
From:   David Howells <dhowells@...hat.com>
To:     Matthew Wilcox <willy@...radead.org>
Cc:     dhowells@...hat.com, viro@...iv.linux.org.uk,
        linux-fsdevel@...r.kernel.org, linux-afs@...ts.infradead.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH 00/10] iov_iter: Add new iters and use with AFS

Matthew Wilcox <willy@...radead.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ