Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188928
b: refs/heads/master
c: 8e0cc81
h: refs/heads/master
v: v3
  • Loading branch information
OGAWA Hirofumi authored and Linus Torvalds committed Mar 24, 2010
1 parent 7056ffa commit b652250
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3fbf586cf7f245392142e5407c2a56f1cff979b6
refs/heads/master: 8e0cc811e0f8029a7225372fb0951fab102c012f
13 changes: 10 additions & 3 deletions trunk/fs/partitions/msdos.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,9 +492,16 @@ int msdos_partition(struct parsed_partitions *state, struct block_device *bdev)
if (!size)
continue;
if (is_extended_partition(p)) {
/* prevent someone doing mkfs or mkswap on an
extended partition, but leave room for LILO */
put_partition(state, slot, start, size == 1 ? 1 : 2);
/*
* 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);

printk(" <");
parse_extended(state, bdev, start, size);
printk(" >");
Expand Down

0 comments on commit b652250

Please sign in to comment.