Damien Zammit, le dim. 26 déc. 2021 22:38:55 +1100, a ecrit:
> This disables the rump buffer cache and avoids any magic translation that
> rump would do.
>
> * rumpdisk/block-rump.c (translate_name): Use `/dev/r%sd' format instead of
> `/dev/%sd'.
Applied, thanks!
> ---
> rumpdisk/block-rump.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/rumpdisk/block-rump.c b/rumpdisk/block-rump.c
> index a586a6e0..7a4a167e 100644
> --- a/rumpdisk/block-rump.c
> +++ b/rumpdisk/block-rump.c
> @@ -87,12 +87,12 @@ search_bd (char *name)
> return NULL;
> }
>
> -/* BSD name of whole disk device is /dev/wdXd
> +/* BSD name of whole disk device is /dev/rwdXd
> * but we will receive wdX as the name */
> static void
> translate_name (char *output, int len, char *name)
> {
> - snprintf (output, len - 1, "/dev/%sd", name);
> + snprintf (output, len - 1, "/dev/r%sd", name);
> }
>
> static boolean_t
> --
> 2.33.1
>
>