aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2006-06-06 22:17:05 -0600
committerH. Peter Anvin <hpa@zytor.com>2006-06-06 21:23:32 -0700
commitf07cd18e74777605b1d5cebafd7088be6c8b5bf0 (patch)
tree967010f23dcdbf1f5715348b920bdfb0da4cdb77
parent1ee2175426700988f540d2ed7064afc16bab67cb (diff)
downloadklibc-f07cd18e74777605b1d5cebafd7088be6c8b5bf0.tar.gz
kinit: convert '/' in block device names to '!', not '.'klibc-1.3.32
register_disk() converts the first slash in a disk name to "!", so a block device like /dev/cciss/c0d0 shows up in /sys as /sys/block/cciss!c0d0. kinit must use the same conversion in order for "root=/dev/cciss/c0d0p1" to find the device. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
-rw-r--r--usr/kinit/name_to_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/kinit/name_to_dev.c b/usr/kinit/name_to_dev.c
index 5aadc06ab9976..593bc120dc684 100644
--- a/usr/kinit/name_to_dev.c
+++ b/usr/kinit/name_to_dev.c
@@ -154,7 +154,7 @@ static inline dev_t name_to_dev_t_real(const char *name)
for (p = s; *p; p++)
if (*p == '/')
- *p = '.';
+ *p = '!';
res = try_name(s, 0);
if (res)
return res;