Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Apr 2014 09:02:22 -0700
From:      Matthew Fleming <mdf@FreeBSD.org>
To:        Ian Lepore <ian@freebsd.org>
Cc:        "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org>, Eitan Adler <eadler@freebsd.org>
Subject:   Re: svn commit: r265132 - in head: share/man/man4 sys/dev/null
Message-ID:  <CAMBSHm9mocqTVBeC0WUwg8=t_5aRcWXQV0eb=jYAqavmS1Z-Cw@mail.gmail.com>
In-Reply-To: <1398869319.22079.54.camel@revolution.hippie.lan>
References:  <201404300620.s3U6Kmn6074492@svn.freebsd.org> <1398869319.22079.54.camel@revolution.hippie.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 30, 2014 at 7:48 AM, Ian Lepore <ian@freebsd.org> wrote:
> On Wed, 2014-04-30 at 06:20 +0000, Eitan Adler wrote:
>> Author: eadler
>> Date: Wed Apr 30 06:20:48 2014
>> New Revision: 265132
>> URL: http://svnweb.freebsd.org/changeset/base/265132
>>
>> Log:
>>   Add a /dev/full device.
>>
>>   /dev/full is similar to /dev/zero except it always returns
>>   ENOSPC when you attempt to write to it.
>>
>
> For some reason this reminded me of something I've been wanting for a
> while but never get around to writing... /dev/ones, it's just
> like /dev/zero except it returns 0xff bytes.  Useful for dd'ing to wipe
> out flash-based media.

dd if=/dev/zero | tr "\000" "\377" | dd of=<xxx>

But it's not quite the same.

Cheers,
matthew



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMBSHm9mocqTVBeC0WUwg8=t_5aRcWXQV0eb=jYAqavmS1Z-Cw>