]> git.ozlabs.org Git - petitboot/commitdiff
Remove discover sd to ps3d hack
authorGeoff Levand <geoffrey.levand@am.sony.com>
Thu, 9 Jul 2009 17:40:43 +0000 (10:40 -0700)
committerGeoff Levand <geoffrey.levand@am.sony.com>
Thu, 9 Jul 2009 17:40:43 +0000 (10:40 -0700)
This is now old enough to be retired and allow config files
on ps3d devices to refer to scsi devices.

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
discover/paths.c

index 8e2a3610bee7b00a163bb15619fa6a36121c0962..fe7a87635fe7384642cb0400d2c4d4497032358a 100644 (file)
@@ -81,14 +81,6 @@ char *parse_device_path(void *alloc_ctx,
        if (is_prefix(dev_str, "/dev/"))
                dev_str += strlen("/dev/");
 
        if (is_prefix(dev_str, "/dev/"))
                dev_str += strlen("/dev/");
 
-       /* PS3 hack: if we're reading from a ps3dx device, and we refer to
-        * a sdx device, remap to ps3dx */
-       if (cur_dev && is_prefix(cur_dev, "/dev/ps3d")
-                       && is_prefix(dev_str, "sd")) {
-               snprintf(tmp, 255, "ps3d%s", dev_str + 2);
-               dev_str = tmp;
-       }
-
        return join_paths(alloc_ctx, "/dev", dev_str);
 }
 
        return join_paths(alloc_ctx, "/dev", dev_str);
 }