Date: Sun, 6 Nov 2011 20:51:36 +0700 (NOVT) From: Eugene Grosbein <egrosbein@rdtc.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/162332: bsdlabel destroys partitions with indexes over 8 Message-ID: <201111061351.pA6DpaZn003936@grosbein.pp.ru> Resent-Message-ID: <201111061410.pA6EA6sL073144@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111061351.pA6DpaZn003936>