From owner-svn-src-head@FreeBSD.ORG Wed Apr 30 19:54:18 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D5A8D568 for ; Wed, 30 Apr 2014 19:54:18 +0000 (UTC) Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A54171035 for ; Wed, 30 Apr 2014 19:54:18 +0000 (UTC) Received: by mail-pd0-f179.google.com with SMTP id y10so2203674pdj.38 for ; Wed, 30 Apr 2014 12:54:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=PkHydebOy368LXR8T8eaKGQ7ODEqFwSnqRbWViNvJJ4=; b=BHB6FbtapO1ZOqqMJnAP3u7g1c2/ysVuTZOg01LYVgT3HQuByF0jLrrUqP09Z2vmXC S4rj1lJw0/SdYBhXNDK7Q2HCciBuFKbMqC/M7+nabsElnl/p575JOi/Z8RItDtAMt8Rs v/H8W2ecLOSC/OtaMiL1q958DfMTNeb8wfzPeHga8gagYk98FE8ac8mYJGz54AFnea79 5+WOVASoD1c8SF4A/yHytCQ8DdLsgo3mTqXwKOjKPs3DziAwg2AWSzYnfPWY8MMoEkmc mTQHCqokrJgY3oPNj8v1miJy24SLuse9TX5354Uojtc22frzktJLzdT1tVjGKbBjmOVM gLyw== X-Gm-Message-State: ALoCoQmCkcUb041LBu5xPnjb1GgtHowxJSUA4zIxabwHMkLl5lHoU4SaMTQLc2pOZMOFGXuhhV2E X-Received: by 10.66.177.168 with SMTP id cr8mr12209540pac.128.1398887651956; Wed, 30 Apr 2014 12:54:11 -0700 (PDT) Received: from macintosh-3c0754232d17.corp.netflix.com (dc1-prod.netflix.com. [69.53.236.251]) by mx.google.com with ESMTPSA id xr9sm141853978pab.5.2014.04.30.12.54.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 30 Apr 2014 12:54:11 -0700 (PDT) Sender: Warner Losh X-Google-Original-From: Warner Losh Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: svn commit: r265132 - in head: share/man/man4 sys/dev/null From: Warner Losh In-Reply-To: <1398878008.22079.67.camel@revolution.hippie.lan> Date: Wed, 30 Apr 2014 13:54:09 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201404300620.s3U6Kmn6074492@svn.freebsd.org> <1398869319.22079.54.camel@revolution.hippie.lan> <1398878008.22079.67.camel@revolution.hippie.lan> To: Ian Lepore X-Mailer: Apple Mail (2.1874) Cc: svn-src-head@FreeBSD.org, Eitan Adler , svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, Steven Hartland X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Apr 2014 19:54:19 -0000 On Apr 30, 2014, at 11:13 AM, Ian Lepore wrote: > On Wed, 2014-04-30 at 17:22 +0100, Steven Hartland wrote: >> ----- Original Message -----=20 >> From: "Ian Lepore" >> To: "Eitan Adler" >> Cc: ; ; = >> Sent: Wednesday, April 30, 2014 3:48 PM >> Subject: Re: svn commit: r265132 - in head: share/man/man4 = sys/dev/null >>=20 >>=20 >>> 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 >>>>=20 >>>> Log: >>>> Add a /dev/full device. >>>>=20 >>>> /dev/full is similar to /dev/zero except it always returns >>>> ENOSPC when you attempt to write to it. >>>>=20 >>>=20 >>> 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. >>=20 >> Surely for that you want camcontrol security ...? >>=20 >> Regards >> Steve >=20 > I have no idea what that is, but given that it has "security" in the > name, it's almost certainly NOT what I want in any way shape or form. > Shocking as it may be, some people are just not obsessed with = security, > for good reason. It just isn't a consideration in any way in my day = to > day activities. =20 >=20 > When I want to make an sdcard, or some portion thereof, look > empty/virgin/new-from-factory for testing on an embedded system, that > has nothing to do with security, and everything to do with just = exactly > what I asked for: something that writes all-ones-bits. >=20 > Besides, cam and sdcards don't play in the same sandboxes. You likely want some variation of the SATA secure erase command, which = despite having the name =91secure=92 in it really is a =91erase all = contents of this drive and reinitialize to factory defaults=92. Warner=