[CRIU] [PATCH 1/2] zdtm: introduced a local version of O_LARGEFILE

Pavel Emelyanov xemul at parallels.com
Mon Jan 28 23:30:00 EST 2013


On 01/28/2013 12:22 PM, Alexander Kartashov wrote:
> It turned out that the macro O_LARGEFILE is 0 on Debian
> so we need a local definition of the macro that matches
> the kernel one.

I don't understand why. If it's absent, in the distro, so why the
hell should we bother?

> Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
> ---
>  test/zdtm/lib/arch/arm/include/asm/fcntl.h |    7 +++++++
>  test/zdtm/lib/arch/x86/include/asm/fcntl.h |    7 +++++++
>  2 files changed, 14 insertions(+)
>  create mode 100644 test/zdtm/lib/arch/arm/include/asm/fcntl.h
>  create mode 100644 test/zdtm/lib/arch/x86/include/asm/fcntl.h
> 
> diff --git a/test/zdtm/lib/arch/arm/include/asm/fcntl.h b/test/zdtm/lib/arch/arm/include/asm/fcntl.h
> new file mode 100644
> index 0000000..5af4e85
> --- /dev/null
> +++ b/test/zdtm/lib/arch/arm/include/asm/fcntl.h
> @@ -0,0 +1,7 @@
> +#ifndef __CR_FCNTL_H__
> +#define __CR_FCNTL_H__
> +
> +#undef  O_LARGEFILE
> +#define O_LARGEFILE 0400000
> +
> +#endif
> diff --git a/test/zdtm/lib/arch/x86/include/asm/fcntl.h b/test/zdtm/lib/arch/x86/include/asm/fcntl.h
> new file mode 100644
> index 0000000..1446d52
> --- /dev/null
> +++ b/test/zdtm/lib/arch/x86/include/asm/fcntl.h
> @@ -0,0 +1,7 @@
> +#ifndef __CR_FCNTL_H__
> +#define __CR_FCNTL_H__
> +
> +#undef  O_LARGEFILE
> +#define O_LARGEFILE 00100000
> +
> +#endif
> 




More information about the CRIU mailing list