From f366c5540592871ac05ea5b078e40dc581a7b2ec Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Sat, 14 Nov 2020 12:19:10 +0100 Subject: 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. --- rumpdisk/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rumpdisk/main.c') 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; -- cgit v1.2.3