[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#496293: should skip mtd devices for now



On Sun, Aug 24, 2008 at 01:04:30PM +0300, Martin Michlmayr wrote:
> Patch:
> 
> Index: find-parts.c
> ===================================================================
> --- find-parts.c	(revision 55196)
> +++ find-parts.c	(working copy)
> @@ -180,6 +180,8 @@
>      while ((dev = ped_device_get_next(dev)) != NULL) {
>          if (dev->read_only)
>              continue;
> +        if (strstr(dev->path, "/dev/mtd") == dev->path)
> +            continue;
>          if (!ped_disk_probe(dev))
>              continue;
>          disk = ped_disk_new(dev);

Wouldn't the following be sufficient?

  if (!strcmp(dev->path, "/dev/mtd"))

In any cases, go ahead… :)

Cheers,
-- 
Jérémy Bobbio                        .''`. 
lunar@debian.org                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   

Attachment: signature.asc
Description: Digital signature


Reply to: