[LEDE-DEV] [PATCH] block: support /dev/xvd* nodes

Daniel Golle daniel at makrotopia.org
Wed Jul 12 06:30:41 PDT 2017


On Wed, Jul 12, 2017 at 07:14:04AM -0400, W. Michael Petullo wrote:
> From bc848f9f3d0ffb9aa114c7faa3916f059f5616b2 Mon Sep 17 00:00:00 2001
> From: "W. Michael Petullo" <mike at flyn.org>
> Date: Wed, 12 Jul 2017 07:02:18 -0400
> Subject: [PATCH] block: support /dev/xvd* nodes
> To: LEDE Development List <lede-dev at lists.infradead.org>
> 
> Xen provides paravirtualized block devices which most often appear as
> /dev/xvd*. This patch adds this pattern to those known to the block
> utilitiy. These devices require a kernel compiled with the xen-blkfront
> driver.

Having a closer look I just noticed that there are no XEN options set
for x86/64 kernel. Maybe this should be changed, or is the the x86/64
subtarget useful as a Xen domU right now?
If not, it'd be great if you can test and suggest the necessary config
changes to achieve this as well.


> 
> Signed-off-by: W. Michael Petullo <mike at flyn.org>
> ---
>  block.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/block.c b/block.c
> index d5c3937..3e4cfb5 100644
> --- a/block.c
> +++ b/block.c
> @@ -530,6 +530,7 @@ static void cache_load(int mtd)
>  	_cache_load("/dev/hd*");
>  	_cache_load("/dev/md*");
>  	_cache_load("/dev/vd*");
> +	_cache_load("/dev/xvd*");
>  	_cache_load("/dev/mapper/*");
>  }
>  
> -- 
> 2.13.0
> 
> 
> _______________________________________________
> Lede-dev mailing list
> Lede-dev at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/lede-dev



More information about the Lede-dev mailing list