From owner-freebsd-current@FreeBSD.ORG Tue Jan 13 21:07:55 2009 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F1E6106564A for ; Tue, 13 Jan 2009 21:07:55 +0000 (UTC) (envelope-from jeremie@le-hen.org) Received: from smtp6-g21.free.fr (smtp6-g21.free.fr [212.27.42.6]) by mx1.freebsd.org (Postfix) with ESMTP id 0EEC68FC13 for ; Tue, 13 Jan 2009 21:07:53 +0000 (UTC) (envelope-from jeremie@le-hen.org) Received: from smtp6-g21.free.fr (localhost [127.0.0.1]) by smtp6-g21.free.fr (Postfix) with ESMTP id C79C1E0808D for ; Tue, 13 Jan 2009 22:07:49 +0100 (CET) Received: from endor.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp6-g21.free.fr (Postfix) with ESMTP id E4C67E081BA for ; Tue, 13 Jan 2009 22:07:46 +0100 (CET) Received: from obiwan.tataz.chchile.org (endor.tataz.chchile.org [192.168.1.25]) by endor.tataz.chchile.org (Postfix) with ESMTP id CB2313406E for ; Tue, 13 Jan 2009 21:07:16 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id BFBE75082A; Tue, 13 Jan 2009 22:07:16 +0100 (CET) Date: Tue, 13 Jan 2009 22:07:16 +0100 From: Jeremie Le Hen To: freebsd-current@FreeBSD.org Message-ID: <20090113210716.GI41799@obiwan.tataz.chchile.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Subject: fstab type "dp" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2009 21:07:55 -0000 Hi, A year ago, I discussed with rwatson@ about having a new fs_type for dump devices. I initially implemented it as "du" but I later noticed that NetBSD already has this feature as "dp". I'd like to get some review about this patch in the hope of getting this patch eventually committed. This patch contains: - New fs_type "dp" for dump devices, along with "sw" for swap devices. - dumpon(8) and savecore(8) updated accordingly. - New dumpon(8) option -a that implements the logic to automatically select a correct dump devices by scanning fstab(5). The logic is backward compatible, that is if no "dp" entry is present, it will use the first "sw" entry. Also, etc/rc.d/dumpon has been modified to use this new option. - New dumpon(8) option -f to force the use of a device not marked as "dp" or "sw". This is a bonus. - Manpages updated. Note that both dumpon(8) and savecore(8) required the fs_vfstype to be "swap" for "sw" devices for "XXX backward compatibility". Despite this wasn't documented in the manpage, I didn't removed it and added "dump" as a valid fs_vfstype. The fstab(5) manpage still doesn't mention them though. Thank you. Best regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >