aboutsummaryrefslogtreecommitdiff
path: root/rumpdisk
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-14 12:32:21 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-11-14 12:34:29 +0100
commite6657829a66e72078b33f4c11c4501b054fac904 (patch)
tree98f9291fcdd197771628ce1041af43d2f242eff7 /rumpdisk
parentf366c5540592871ac05ea5b078e40dc581a7b2ec (diff)
downloadhurd-e6657829a66e72078b33f4c11c4501b054fac904.tar.gz
hurd-e6657829a66e72078b33f4c11c4501b054fac904.tar.bz2
hurd-e6657829a66e72078b33f4c11c4501b054fac904.zip
libmachdev: Avoid conflating translator name and path
bootstrap translators may not wish to appear in the FS, and the name of the translator does not have to match the path where it is getting installed. * libmachdev/machdev.h (machdev_trivfs_init): Add path parameter. * libmachdev/trivfs_server.c (machdev_trivfs_init): Add path parameter, set devnode only if it is not NULL. (trivfs_S_fsys_init): Only call install_as_translator when devnode is not NULL. * /rumpdisk/main.c (main): Add path parameter.
Diffstat (limited to 'rumpdisk')
-rw-r--r--rumpdisk/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rumpdisk/main.c b/rumpdisk/main.c
index 3ee24341..150dc996 100644
--- a/rumpdisk/main.c
+++ b/rumpdisk/main.c
@@ -118,7 +118,7 @@ main (int argc, char **argv)
rump_register_block ();
machdev_device_init ();
- machdev_trivfs_init (bootstrap_resume_task, "/dev/rumpdisk", &bootstrap);
+ machdev_trivfs_init (bootstrap_resume_task, "rumpdisk", "/dev/rumpdisk", &bootstrap);
err = pthread_create (&t, NULL, machdev_server, NULL);
if (err)
return err;