From owner-svn-src-all@FreeBSD.ORG Wed Apr 30 19:54:18 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D94B9569 for ; Wed, 30 Apr 2014 19:54:18 +0000 (UTC) Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) (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 A8E071037 for ; Wed, 30 Apr 2014 19:54:18 +0000 (UTC) Received: by mail-pa0-f44.google.com with SMTP id ey11so2483873pad.31 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=UWXPWKwti/15oQErTQT5VSgKD9RgCU2CyzoftNtL1lH1bF3QCfEOeFP1/m9O18iozl ep/RoRVk5scpG17Kpycudj3t7eHCUy2uhnkdL8OKtVkXFr17Rj9kAyDBI/koUjbGqZUN YUsWia0iatw5KVDHxl2V5wggUBdA9dc0nNqrH5L2bfqa1rljGTAgqY5fiDL3kFgvVj27 xWuQo7mhrm+5HXrpzMEUG/wkgY3jon790ysrNWkKN5Zvw6Ju4kOBsKyoTAeuWF1ngB+q GrX+ByxVtH/SJXh4Dcnjlc5baI2Dk2QNKtDXQksd1/Xc3iuoJz9JRMUiLG7Lc9IRLa71 RYEg== X-Gm-Message-State: ALoCoQlQ4j+uaKa6GwyN3yHTGbmEQR5DsP4MPlkyapay5hSuvIv5fH7EiBRRT+mdA2xxwJIb4Awy 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-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" 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=