Re: [PATCH 2/3] virfiletest: Test virFileInData iff SEEK_HOLE is defined

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 18, 2017 at 15:46:45 +0200, Michal Privoznik wrote:
> Yet another place where we need to wrap code in
> HAVE_DECL_SEEK_HOLE block.
> 
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
> ---
>  tests/virfiletest.c | 36 +++++++++++++++++++++++-------------
>  1 file changed, 23 insertions(+), 13 deletions(-)
> 
> diff --git a/tests/virfiletest.c b/tests/virfiletest.c
> index a93bee01a..d6a526c13 100644
> --- a/tests/virfiletest.c
> +++ b/tests/virfiletest.c
> @@ -123,7 +123,11 @@ static int
>  makeSparseFile(const off_t offsets[],
>                 const bool startData);
>  
> -#ifdef __linux__
> +static bool
> +holesSupported(void);
> +
> +#if HAVE_DECL_SEEK_HOLE

Also this stubbed out code is now dependant on HAVE_DECL_SEEK_HOLE, but
the next patch includes file necessary for FALLOC_FL_PUNCH_HOLE only if
__linux__ is defined. So you probably want  HAVE_DECL_SEEK_HOLE &&
__linux__

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux