From owner-freebsd-bugs@FreeBSD.ORG Fri Jul 26 19:20:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.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 ESMTP id BCF875CC for ; Fri, 26 Jul 2013 19:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A86AD2C83 for ; Fri, 26 Jul 2013 19:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6QJK1P1008998 for ; Fri, 26 Jul 2013 19:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6QJK1AX008997; Fri, 26 Jul 2013 19:20:01 GMT (envelope-from gnats) Date: Fri, 26 Jul 2013 19:20:01 GMT Message-Id: <201307261920.r6QJK1AX008997@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Garrett Cooper Subject: Re: bin/180861: gpart backup/restore doesn't restore labels X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Garrett Cooper List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jul 2013 19:20:01 -0000 The following reply was made to PR bin/180861; it has been noted by GNATS. From: Garrett Cooper To: "Andrey V. Elsukov" Cc: freebsd-gnats-submit@freebsd.org Subject: Re: bin/180861: gpart backup/restore doesn't restore labels Date: Fri, 26 Jul 2013 12:18:53 -0700 On Fri, Jul 26, 2013 at 3:03 AM, Andrey V. Elsukov wrote: > On 26.07.2013 06:21, Garrett Cooper wrote: >>> Description: >> I'm rebuilding a GPT table from scratch which was previously mirrored, attempting using... >> >> gpart backup ada0 > /tmp/bk >> gpart restore ada1 < /tmp/bk >> >> And noticed that it didn't restore the labels for the device when I ran `gpart list ada1`. > > You forgot to specify -l flag when restoring. But anyway it can't > restore scheme specific labels, like gptids. Ack, ok. From a usability perspective though I would hope that -l would default to on, not off. It caught me by surprise more than anything else when the labels weren't present.