>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 [email protected]:/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:
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to