I had a look at the patch, and it look mostly ok.  But I am not too
happy about this part:


  static int find_scsidisks(const char **dev, int maxdev, int *count)
  {
        if (*count < maxdev) dev[(*count)++] = DEV_BASE "/sda";
        if (*count < maxdev) dev[(*count)++] = DEV_BASE "/sdb";
        if (*count < maxdev) dev[(*count)++] = DEV_BASE "/sdc";
        if (*count < maxdev) dev[(*count)++] = DEV_BASE "/sdd";
        if (*count < maxdev) dev[(*count)++] = DEV_BASE "/sde";
        if (*count < maxdev) dev[(*count)++] = DEV_BASE "/sdf";
        if (*count < maxdev) dev[(*count)++] = DEV_BASE "/sdg";
        if (*count < maxdev) dev[(*count)++] = DEV_BASE "/sdh";

        return 0;
  }

Perhaps it could be rewritten into something more dynamic.  What about
using the content of /proc/partitions to find disks instead?  Or
perhaps /dev/disk/?  Perhaps Ubuntu, SuSe, Fedora or any of the other
distributions have a patch for this?


_______________________________________________
Pkg-sysvinit-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-sysvinit-devel

Reply via email to