[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/1] Add support for SD/MMC storage cards on Linux
From: |
Jim Meyering |
Subject: |
Re: [PATCH 1/1] Add support for SD/MMC storage cards on Linux |
Date: |
Fri, 10 Oct 2008 19:12:02 +0200 |
Harald Welte <address@hidden> wrote:
> This patch adds a new SDMMC device type to represent SD/MMC
> cards. There is nothing special about handling those devices,
> they are just standard block devices with different names.
>
> They use device major ID 179 and are usually called
> /dev/mmcblkN (where N is the card number) and the individual partitions
> /dev/mmcblkNpM (where M is the partition number).
>
> This patch was developed as part of an effort to make debian-installer
> support installation of Debian GNU/Linux on SD/MMC cards, as boot-from-SD
> is becoming a feature seen in mobile x86 devices.
Thanks!
I've applied that with the following tiny change,
to make it so the array size needn't be modified manually:
diff --git a/parted/parted.c b/parted/parted.c
index d7c0292..e026986 100644
--- a/parted/parted.c
+++ b/parted/parted.c
@@ -1268,10 +1268,10 @@ do_print (PedDevice** dev)
int has_free_arg = 0;
int has_list_arg = 0;
int has_num_arg = 0;
- const char *const transport[15] = {"unknown", "scsi", "ide", "dac960",
- "cpqarray", "file", "ataraid", "i2o",
- "ubd", "dasd", "viodasd", "sx8",
"dm",
- "xvd", "sd/mmc"};
+ const char *const transport[] = {"unknown", "scsi", "ide", "dac960",
+ "cpqarray", "file", "ataraid", "i2o",
+ "ubd", "dasd", "viodasd", "sx8", "dm",
+ "xvd", "sd/mmc"};
char* peek_word;
char* start;
char* end;