diff options
author | jdike <jdike> | 2003-11-10 23:01:13 +0000 |
---|---|---|
committer | jdike <jdike> | 2003-11-10 23:01:13 +0000 |
commit | 23ccd4096f21d1e69ddf922883758b69211db4cf (patch) | |
tree | 9f7370e69028d511aebc35bf31aed7ed78519473 | |
parent | 78cb5b233dfb0ff3dec97f594dd44159c0c887c0 (diff) | |
download | uml-history-23ccd4096f21d1e69ddf922883758b69211db4cf.tar.gz |
Use letter device names rather than numbers.
-rw-r--r-- | arch/um/drivers/ubd_kern.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c index 2184804..3167a9b 100644 --- a/arch/um/drivers/ubd_kern.c +++ b/arch/um/drivers/ubd_kern.c @@ -526,9 +526,11 @@ static int ubd_add(int n) S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP, &ubd_blops, NULL); - if(!strcmp(ubd_gendisk.major_name, "ubd")) - sprintf(dev_name, "%s%d", ubd_gendisk.major_name, n); - else sprintf(dev_name, "%s%c", ubd_gendisk.major_name, +#if 0 /* 2.5 ... */ + sprintf(disk->disk_name, "ubd%c", 'a' + unit); +#endif + + sprintf(dev_name, "%s%c", ubd_gendisk.major_name, n + 'a'); make_ide_entries(dev_name); |