bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/2] libmachdev: Introduce startup notification for clean rum


From: Samuel Thibault
Subject: Re: [PATCH 2/2] libmachdev: Introduce startup notification for clean rumpdisk shutdown
Date: Tue, 28 Jul 2020 02:03:12 +0200
User-agent: NeoMutt/20170609 (1.8.3)

Damien Zammit, le dim. 26 juil. 2020 17:37:21 +1000, a ecrit:
> @@ -183,7 +185,16 @@ S_i386_io_perm_create (mach_port_t master_port,
>    return i386_io_perm_create (_hurd_device_master, from, to, io_perm);
>  }
>  
> -/* This is fraud */
> +kern_return_t
> +trivfs_S_fsys_init (struct trivfs_control *tc,
> +                    mach_port_t reply, mach_msg_type_name_t replytype,
> +                    mach_port_t procserver,
> +                    mach_port_t authhandle)
> +{

As discussed on IRC, you need to initialize
_hurd_ports[INIT_PORT_PROC]
_hurd_ports[INIT_PORT_AUTH]
_hurd_ports[INIT_PORT_CRDIR]
_hurd_ports[INIT_PORT_CWDIR]

In order to have things working. You'll also want to attach yourself
onto /dev/rumpdisk, see how startup does it in install_as_translator().
Then you'll be able to use storeio to expose the disk and partitions in
/dev entries.

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]