From owner-freebsd-bugs@FreeBSD.ORG Sun Nov 6 14:10:06 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8368106566B for ; Sun, 6 Nov 2011 14:10:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 970168FC1A for ; Sun, 6 Nov 2011 14:10:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id pA6EA6oE073145 for ; Sun, 6 Nov 2011 14:10:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id pA6EA6sL073144; Sun, 6 Nov 2011 14:10:06 GMT (envelope-from gnats) Resent-Date: Sun, 6 Nov 2011 14:10:06 GMT Resent-Message-Id: <201111061410.pA6EA6sL073144@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Eugene Grosbein Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16690106566B for ; Sun, 6 Nov 2011 14:04:02 +0000 (UTC) (envelope-from eugen@grosbein.pp.ru) Received: from grosbein.pp.ru (grosbein.pp.ru [89.189.172.146]) by mx1.freebsd.org (Postfix) with ESMTP id 5BDB88FC0C for ; Sun, 6 Nov 2011 14:04:00 +0000 (UTC) Received: from grosbein.pp.ru (localhost [127.0.0.1]) by grosbein.pp.ru (8.14.5/8.14.5) with ESMTP id pA6DpaOp003937 for ; Sun, 6 Nov 2011 20:51:36 +0700 (NOVT) (envelope-from eugen@grosbein.pp.ru) Received: (from eugen@localhost) by grosbein.pp.ru (8.14.5/8.14.5/Submit) id pA6DpaZn003936; Sun, 6 Nov 2011 20:51:36 +0700 (NOVT) (envelope-from eugen) Message-Id: <201111061351.pA6DpaZn003936@grosbein.pp.ru> Date: Sun, 6 Nov 2011 20:51:36 +0700 (NOVT) From: Eugene Grosbein To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: bin/162332: bsdlabel destroys partitions with indexes over 8 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Nov 2011 14:10:06 -0000 >Number: 162332 >Category: bin >Synopsis: bsdlabel destroys partitions with indexes over 8 >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Nov 06 14:10:05 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Eugene Grosbein >Release: FreeBSD 8.2-STABLE amd64 >Organization: RDTC JSC >Environment: System: FreeBSD grosbein.pp.ru 8.2-STABLE FreeBSD 8.2-STABLE #13: Sat Oct 22 20:07:08 NOVT 2011 root@grosbein.pp.ru:/usr/local/obj/usr/local/src/sys/DADV amd64 >Description: GEOM now support upto 20 partitions within single BSD label. To raise default limit (8) one have to create label as such: gpart create -s BSD -n 20 ad0s1 But, "bsdlabel -e ad0s1" silently lowers limit down to 8 and destroys partitions numbered 9 (i) and more even if one exits an editor without saving the label. >How-To-Repeat: 1. Create BSD label with command mentioned above: gpart create -s BSD -n 20 ad0s1 2. Use gpart to create 9 partitions within a slice: gpart add -t freebsd-ufs -s 1G ad0s1 ... gpart add -t freebsd-ufs -s 1G ad0s1 3. Use "gpart show" to make sure they are all created 4. Use "bsdlabel -e ad0s1", don't change anything and exit your editor. 5. Use "gpart show" to see that partition 9 has disappeared. 6. "gpart add" not refuses to recreate partition 9 as limit is 8 now. >Fix: Unknown. Silent partition deletion in not acceptable, as well as changing of limit. >Release-Note: >Audit-Trail: >Unformatted: