bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH 1/4] diskfs: Add RPC for fsys_init to bootstrap if present


From: Samuel Thibault
Subject: Re: [PATCH 1/4] diskfs: Add RPC for fsys_init to bootstrap if present
Date: Fri, 31 Jul 2020 00:02:22 +0200
User-agent: NeoMutt/20170609 (1.8.3)

Applied, thanks!

Damien Zammit, le mar. 28 juil. 2020 20:08:34 +1000, a ecrit:
> ---
>  libdiskfs/boot-start.c | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> diff --git a/libdiskfs/boot-start.c b/libdiskfs/boot-start.c
> index 29b8acc6..fa59e1b2 100644
> --- a/libdiskfs/boot-start.c
> +++ b/libdiskfs/boot-start.c
> @@ -518,7 +518,9 @@ diskfs_S_fsys_init (struct diskfs_control *pt,
>  
>    if (diskfs_exec_server_task != MACH_PORT_NULL)
>      {
> +      mach_port_t bootstrap;
>        process_t execprocess;
> +
>        err = proc_task2proc (procserver, diskfs_exec_server_task, 
> &execprocess);
>        assert_perror_backtrace (err);
>  
> @@ -533,6 +535,17 @@ diskfs_S_fsys_init (struct diskfs_control *pt,
>                               execprocess, MACH_MSG_TYPE_COPY_SEND));
>        mach_port_deallocate (mach_task_self (), execprocess);
>  
> +      /* Give the real bootstrap filesystem an fsys_init RPC of its own */
> +      err = task_get_bootstrap_port (mach_task_self (), &bootstrap);
> +      assert_perror_backtrace (err);
> +      if (bootstrap != MACH_PORT_NULL)
> +        {
> +          err = fsys_init (bootstrap, procserver, MACH_MSG_TYPE_COPY_SEND,
> +                           authhandle);
> +          mach_port_deallocate (mach_task_self (), bootstrap);
> +          assert_perror_backtrace (err);
> +        }
> +
>        /* We don't need this anymore. */
>        mach_port_deallocate (mach_task_self (), diskfs_exec_server_task);
>        diskfs_exec_server_task = MACH_PORT_NULL;



reply via email to

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