From owner-freebsd-fs@FreeBSD.ORG Fri Dec 9 04:22:30 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 130ED1065672; Fri, 9 Dec 2011 04:22:30 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from mail.kirov.so-ups.ru (ns.kirov.so-ups.ru [178.74.170.1]) by mx1.freebsd.org (Postfix) with ESMTP id B3BB88FC13; Fri, 9 Dec 2011 04:22:29 +0000 (UTC) Received: from kas30pipe.localhost (localhost.kirov.so-ups.ru [127.0.0.1]) by mail.kirov.so-ups.ru (Postfix) with SMTP id C1E57B806B; Fri, 9 Dec 2011 08:05:22 +0400 (MSK) Received: from kirov.so-ups.ru (unknown [172.21.81.1]) by mail.kirov.so-ups.ru (Postfix) with ESMTP id BC309B806A; Fri, 9 Dec 2011 08:05:22 +0400 (MSK) Received: by ns.kirov.so-ups.ru (Postfix, from userid 1010) id 9F189B8F69; Fri, 9 Dec 2011 08:05:22 +0400 (MSK) Received: from [127.0.0.1] (elsukov.kirov.oduur.so [10.118.3.52]) by ns.kirov.so-ups.ru (Postfix) with ESMTP id C6E36B8F63; Fri, 9 Dec 2011 08:05:21 +0400 (MSK) Message-ID: <4EE18901.7060800@FreeBSD.org> Date: Fri, 09 Dec 2011 08:05:21 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Robert Millan References: <20111208134307.GA5266@thorin> In-Reply-To: <20111208134307.GA5266@thorin> X-Enigmail-Version: 1.3.3 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0284], KAS30/Release X-SpamTest-Info: Not protected Cc: freebsd-fs@freebsd.org, Adrian Chadd Subject: Re: [PATCH] Wipe other file systems when creating new UFS X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2011 04:22:30 -0000 On 08.12.2011 17:43, Robert Millan wrote: > newfs(8) currently erases remnants of UFS if they exist. I think it should > go further and erase first and last 512 kiB of the partition. Hi, i think before erasing 512 kib you should at least check actual available mediasize and don't use hardcoded 512 sector size. -- WBR, Andrey V. Elsukov