[lxc-devel] [PATCH 04/17] Define BLKGETSIZE64 and LO_FLAGS_AUTOCLEAR

Serge Hallyn serge.hallyn at ubuntu.com
Fri Aug 16 15:25:49 UTC 2013


Quoting Stéphane Graber (stgraber at ubuntu.com):
> Those two aren't always around (specifically on bionic), so add some
> defines in case they aren't already defined.
> 
> Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>

Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>

> ---
>  src/lxc/bdev.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/src/lxc/bdev.c b/src/lxc/bdev.c
> index e244550..2ce7de2 100644
> --- a/src/lxc/bdev.c
> +++ b/src/lxc/bdev.c
> @@ -48,6 +48,14 @@
>  #include "parse.h"
>  #include "utils.h"
>  
> +#ifndef BLKGETSIZE64
> +#define BLKGETSIZE64 _IOR(0x12,114,size_t)
> +#endif
> +
> +#ifndef LO_FLAGS_AUTOCLEAR
> +#define LO_FLAGS_AUTOCLEAR 4
> +#endif
> +
>  lxc_log_define(bdev, lxc);
>  
>  static int do_rsync(const char *src, const char *dest)
> -- 
> 1.8.3.2
> 
> 
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead. 
> Download for free and get started troubleshooting in minutes. 
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________
> Lxc-devel mailing list
> Lxc-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-devel




More information about the lxc-devel mailing list