|
Line
Link Here
|
|
-- |
|
|
| 1 |
fs/partitions/msdos.c | 9 ++++++++- |
|
fs/partitions/msdos.c | 9 ++++++++- |
| 2 |
1 file changed, 8 insertions(+), 1 deletion(-) |
1 |
1 file changed, 8 insertions(+), 1 deletion(-) |
| 3 |
-- a/fs/partitions/msdos.c |
2 |
++ b/fs/partitions/msdos.c |
|
Lines 18-24
Link Here
|
| 18 |
* |
18 |
* |
| 19 |
* Re-organised Feb 1998 Russell King |
19 |
* Re-organised Feb 1998 Russell King |
| 20 |
*/ |
20 |
*/ |
| 21 |
|
21 |
#include <linux/msdos_fs.h> |
| 22 |
|
22 |
|
| 23 |
#include "check.h" |
23 |
#include "check.h" |
| 24 |
#include "msdos.h" |
24 |
#include "msdos.h" |
|
Lines 419-424
int msdos_partition(struct parsed_partit
Link Here
|
| 419 |
Sector sect; |
419 |
Sector sect; |
| 420 |
unsigned char *data; |
420 |
unsigned char *data; |
| 421 |
struct partition *p; |
421 |
struct partition *p; |
|
|
422 |
struct fat_boot_sector *fb; |
| 422 |
int slot; |
423 |
int slot; |
| 423 |
|
424 |
|
| 424 |
data = read_dev_sector(bdev, 0, §); |
425 |
data = read_dev_sector(bdev, 0, §); |
|
Lines 441-446
int msdos_partition(struct parsed_partit
Link Here
|
| 441 |
* partition table. Reject this in case the boot indicator |
442 |
* partition table. Reject this in case the boot indicator |
| 442 |
* is not 0 or 0x80. |
443 |
* is not 0 or 0x80. |
| 443 |
*/ |
444 |
*/ |
|
|
445 |
fb = (struct fat_boot_sector *) data; |
| 446 |
if (fb->reserved && fb->fats && FAT_VALID_MEDIA(fb->media)) { |
| 447 |
printk("\n"); |
| 448 |
put_dev_sector(sect); |
| 449 |
return 1; |
| 450 |
} |
| 444 |
p = (struct partition *) (data + 0x1be); |
451 |
p = (struct partition *) (data + 0x1be); |
| 445 |
for (slot = 1; slot <= 4; slot++, p++) { |
452 |
for (slot = 1; slot <= 4; slot++, p++) { |
| 446 |
if (p->boot_ind != 0 && p->boot_ind != 0x80) { |
453 |
if (p->boot_ind != 0 && p->boot_ind != 0x80) { |