diff options
author | Damien Zammit <damien@zamaudio.com> | 2020-11-14 12:19:10 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-11-14 12:19:10 +0100 |
commit | f366c5540592871ac05ea5b078e40dc581a7b2ec (patch) | |
tree | 523225a86d70b8539f7320bfaa3f56e58bb62cc0 /rumpdisk | |
parent | d0b4ebca3ac6aab7b5aff7d9cd604984169a796b (diff) | |
download | hurd-f366c5540592871ac05ea5b078e40dc581a7b2ec.tar.gz hurd-f366c5540592871ac05ea5b078e40dc581a7b2ec.tar.bz2 hurd-f366c5540592871ac05ea5b078e40dc581a7b2ec.zip |
libmachdev: Support installing translator in the FS
*/libmachdev/trivfs_server.c (machdev_ctl): Rename to control_port.
(trivfs_S_fsys_init): Fix accordingly.
(control): New variable.
(bootstrapped, underlying, devnode): New variables.
(install_as_translator): New function.
(trivfs_S_fsys_init): When bootstrapping, call install_as_translator.
(machdev_trivfs_init): Create one port of the control class.
(trivfs_S_fsys_getpriv): Use ports_get_send_right on the control port
instead of creating another one.
(resume_bootstrap_server): Use ports_get_send_right on the control port
instead of creating another one.
(machdev_trivfs_init): When bootstrapping, Use our control port as fsys.
Diffstat (limited to 'rumpdisk')
-rw-r--r-- | rumpdisk/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rumpdisk/main.c b/rumpdisk/main.c index 27a8ea38..3ee24341 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, "fs", &bootstrap); + machdev_trivfs_init (bootstrap_resume_task, "/dev/rumpdisk", &bootstrap); err = pthread_create (&t, NULL, machdev_server, NULL); if (err) return err; |