Applied, thanks!

[email protected], le sam. 21 mars 2026 22:54:48 +0000, a ecrit:
> From: Diego Nieto Cid <[email protected]>
> 
>   * rumpdisk/block-rump.c: following the pattern at libstore/device.c, where
>     dev_sync conditionally uses DEV_FLUSH_CACHE, the switch case for
>     DEV_FLUSH_CACHE in block-rump.c is wrapped in ifdef.
> ---
>  rumpdisk/block-rump.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/rumpdisk/block-rump.c b/rumpdisk/block-rump.c
> index 7ef1795b..aa4a387f 100644
> --- a/rumpdisk/block-rump.c
> +++ b/rumpdisk/block-rump.c
> @@ -553,6 +553,7 @@ rumpdisk_device_set_status (void *d, dev_flavor_t flavor, 
> dev_status_t status,
>        /* Partitions are not implemented here, but in the parted-based
>         * translators.  */
>        return D_SUCCESS;
> +#ifdef DEV_FLUSH_CACHE
>      case DEV_FLUSH_CACHE:
>        /* * Rump/NetBSD expects an integer argument for DIOCCACHESYNC.
>         * 1 = Force flush
> @@ -565,6 +566,7 @@ rumpdisk_device_set_status (void *d, dev_flavor_t flavor, 
> dev_status_t status,
>       return rump_errno2host (errno);
>        }
>        return D_SUCCESS;
> +#endif
>      default:
>        return D_INVALID_OPERATION;
>      }
> -- 
> 2.51.0
> 
> 

Reply via email to