[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hurd-bug
Subject:    Re: [PATCH 2/2] libmachdev: Introduce startup notification for clean rumpdisk shutdown
From:       Samuel Thibault <samuel.thibault () gnu ! org>
Date:       2020-07-28 0:03:12
Message-ID: 20200728000312.r3ukyn3rizinlo3g () function
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic