https://bugzilla.novell.com/show_bug.cgi?id=620448 https://bugzilla.novell.com/show_bug.cgi?id=620448#c2 Jeff Mahoney <jeffm@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Component|Kernel |Kernel Version|RC 2 |Final Resolution| |WONTFIX Product|openSUSE 11.3 |openSUSE 12.1 --- Comment #2 from Jeff Mahoney <jeffm@suse.com> 2012-03-05 22:44:46 UTC --- I can reproduce this on 12.1 but it turns out it's by design:
From fs/partitions/msdos.c: sector_t size = nr_sects(p)*sector_size; if (!size) continue; if (is_extended_partition(p)) { /* * prevent someone doing mkfs or mkswap on an * extended partition, but leave room for LILO * FIXME: this uses one logical sector for > 512b * sector, although it may not be enough/proper. */ sector_t n = 2; n = min(size, max(sector_size, n)); put_partition(state, slot, start, n);
I came across this while checking out the userspace equivalents so I could see what condition was causing it to return -EBUSY. I duplicated your partition table on a scratch disk for testing, so it should be identical. Normal partition: sled2:/sys/block/sdb/sdb2 # cat start size 20965376 20963328 Extended partition: sled2:/sys/block/sdb/sdb3 # cat start size 41928704 2 .. so that's why you can't use the adjacent sector. Interestingly, the fdisk(8) tool aligns up to the next MB anyway. Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000ae9a8 Device Boot Start End Blocks Id System /dev/sdb1 2048 20965375 10481664 83 Linux /dev/sdb2 20965376 41928703 10481664 83 Linux /dev/sdb3 41928704 160835583 59453440 5 Extended Command (m for help): n Partition type: p primary (2 primary, 1 extended, 1 free) l logical (numbered from 5) Select (default p): l Adding logical partition 5 First sector (41930752-160835583, default 41930752): The version of parted in 12.1 won't actually let you create the partition without ignoring two different warnings. How did you create that partition table? If this was introduced recently, I'd consider it a regression -- however, it's been around since at least 2.4.19. I'm closing this as WONTFIX. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.