From: Petr Vorel <pvorel@suse.cz>
To: Andrea Cervesato <andrea.cervesato@suse.de>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH 2/8] lapi: add struct xattr_args fallback
Date: Fri, 31 Jan 2025 09:36:53 +0100 [thread overview]
Message-ID: <20250131083653.GA1072273@pevik> (raw)
In-Reply-To: <20250127-xattrat-v1-2-c3ee31e2543b@suse.com>
Hi Andrea,
> Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
> ---
> configure.ac | 1 +
> include/lapi/xattr.h | 19 +++++++++++++++++++
> 2 files changed, 20 insertions(+)
> diff --git a/configure.ac b/configure.ac
> index 6992d75ca300ccc4cc21a45a916f6b3be1a3b8fe..eb1a966322313cf785c25af0f317700418186927 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -247,6 +247,7 @@ AC_CHECK_TYPES([struct cachestat_range],,,[#include <sys/mman.h>])
> AC_CHECK_TYPES([struct cachestat],,,[#include <sys/mman.h>])
> AC_CHECK_TYPES([struct mnt_id_req],,,[#include <linux/mount.h>])
> AC_CHECK_TYPES([struct statmount],,,[#include <linux/mount.h>])
> +AC_CHECK_TYPES([struct xattr_args],,,[#include <linux/xattr.h>])
> # Tools knobs
> diff --git a/include/lapi/xattr.h b/include/lapi/xattr.h
> new file mode 100644
> index 0000000000000000000000000000000000000000..b30b24ac0dce04ee225a7609e92fb7af8b545283
> --- /dev/null
> +++ b/include/lapi/xattr.h
> @@ -0,0 +1,19 @@
> +/* SPDX-License-Identifier: GPL-2.0-or-later */
> +/*
> + * Copyright (c) 2025 Linux Test Project
> + */
> +
> +#ifndef LAPI_XATTR_H__
> +#define LAPI_XATTR_H__
> +
> +#include <stdint.h>
Could you, please, move conditional include from tests to this lapi header?
#ifdef HAVE_LINUX_XATTR_H
# include <linux/xattr.h>
#endif
That's the way we agreed in the past (tests include just a lapi header, not a
kernel one).
Otherwise LGTM.
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Kind regards,
Petr
> +
> +#ifndef STRUCT_XATTR_ARGS
> +struct xattr_args {
> + void *value;
> + uint32_t size;
> + uint32_t flags;
> +};
> +#endif
> +
> +#endif /* LAPI_XATTR_H__ */
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2025-01-31 8:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-27 14:08 [LTP] [PATCH 0/8] setxattrat coverage Andrea Cervesato
2025-01-27 14:08 ` [LTP] [PATCH 1/8] syscalls: add *xattrat syscalls Andrea Cervesato
2025-01-31 9:09 ` Petr Vorel
2025-01-27 14:08 ` [LTP] [PATCH 2/8] lapi: add struct xattr_args fallback Andrea Cervesato
2025-01-31 8:36 ` Petr Vorel [this message]
2025-01-27 14:08 ` [LTP] [PATCH 3/8] setxattr01: add setxattrat variant Andrea Cervesato
2025-03-06 12:46 ` Cyril Hrubis
2025-01-27 14:08 ` [LTP] [PATCH 4/8] setxattr02: " Andrea Cervesato
2025-01-27 14:08 ` [LTP] [PATCH 5/8] setxattr03: " Andrea Cervesato
2025-01-27 14:08 ` [LTP] [PATCH 6/8] lapi: add safe *xattrat macros Andrea Cervesato
2025-01-27 14:08 ` [LTP] [PATCH 7/8] Add setxattrat01 test Andrea Cervesato
2025-01-27 14:08 ` [LTP] [PATCH 8/8] Add setxattrat02 test Andrea Cervesato
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250131083653.GA1072273@pevik \
--to=pvorel@suse.cz \
--cc=andrea.cervesato@suse.de \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.