* [LTP] [PATCH] llistxattr03: Convert docs to docparse
@ 2024-10-31 8:59 Ma Xinjian via ltp
2024-11-05 11:18 ` Wei Gao via ltp
0 siblings, 1 reply; 3+ messages in thread
From: Ma Xinjian via ltp @ 2024-10-31 8:59 UTC (permalink / raw)
To: ltp
Signed-off-by: Ma Xinjian <maxj.fnst@fujitsu.com>
---
.../kernel/syscalls/llistxattr/llistxattr03.c | 23 +++++++++----------
1 file changed, 11 insertions(+), 12 deletions(-)
diff --git a/testcases/kernel/syscalls/llistxattr/llistxattr03.c b/testcases/kernel/syscalls/llistxattr/llistxattr03.c
index 940851f40..3280e91aa 100644
--- a/testcases/kernel/syscalls/llistxattr/llistxattr03.c
+++ b/testcases/kernel/syscalls/llistxattr/llistxattr03.c
@@ -1,17 +1,16 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
-* Copyright (c) 2016 Fujitsu Ltd.
-* Author: Xiao Yang <yangx.jy@cn.fujitsu.com>
-*/
-
-/*
-* Test Name: llistxattr03
-*
-* Description:
-* llistxattr is identical to listxattr. an empty buffer of size zero
-* can return the current size of the list of extended attribute names,
-* which can be used to estimate a suitable buffer.
-*/
+ * Copyright (c) 2016 Fujitsu Ltd.
+ * Author: Xiao Yang <yangx.jy@cn.fujitsu.com>
+ */
+
+/*\
+ * [Description]
+ *
+ * llistxattr is identical to listxattr. An empty buffer of size zero
+ * can return the current size of the list of extended attribute names,
+ * which can be used to estimate a suitable buffer.
+ */
#include "config.h"
#include <errno.h>
--
2.42.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [LTP] [PATCH] llistxattr03: Convert docs to docparse
2024-10-31 8:59 [LTP] [PATCH] llistxattr03: Convert docs to docparse Ma Xinjian via ltp
@ 2024-11-05 11:18 ` Wei Gao via ltp
2024-11-12 22:49 ` Petr Vorel
0 siblings, 1 reply; 3+ messages in thread
From: Wei Gao via ltp @ 2024-11-05 11:18 UTC (permalink / raw)
To: Ma Xinjian; +Cc: ltp
On Thu, Oct 31, 2024 at 04:59:34PM +0800, Ma Xinjian via ltp wrote:
> Signed-off-by: Ma Xinjian <maxj.fnst@fujitsu.com>
> ---
> .../kernel/syscalls/llistxattr/llistxattr03.c | 23 +++++++++----------
> 1 file changed, 11 insertions(+), 12 deletions(-)
>
> diff --git a/testcases/kernel/syscalls/llistxattr/llistxattr03.c b/testcases/kernel/syscalls/llistxattr/llistxattr03.c
> index 940851f40..3280e91aa 100644
> --- a/testcases/kernel/syscalls/llistxattr/llistxattr03.c
> +++ b/testcases/kernel/syscalls/llistxattr/llistxattr03.c
> @@ -1,17 +1,16 @@
> // SPDX-License-Identifier: GPL-2.0-or-later
> /*
> -* Copyright (c) 2016 Fujitsu Ltd.
> -* Author: Xiao Yang <yangx.jy@cn.fujitsu.com>
> -*/
> -
> -/*
> -* Test Name: llistxattr03
> -*
> -* Description:
> -* llistxattr is identical to listxattr. an empty buffer of size zero
> -* can return the current size of the list of extended attribute names,
> -* which can be used to estimate a suitable buffer.
> -*/
> + * Copyright (c) 2016 Fujitsu Ltd.
> + * Author: Xiao Yang <yangx.jy@cn.fujitsu.com>
> + */
> +
> +/*\
> + * [Description]
> + *
> + * llistxattr is identical to listxattr. An empty buffer of size zero
> + * can return the current size of the list of extended attribute names,
> + * which can be used to estimate a suitable buffer.
> + */
Reviewed-by: Wei Gao <wegao@suse.com>
>
> #include "config.h"
> #include <errno.h>
> --
> 2.42.0
>
>
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LTP] [PATCH] llistxattr03: Convert docs to docparse
2024-11-05 11:18 ` Wei Gao via ltp
@ 2024-11-12 22:49 ` Petr Vorel
0 siblings, 0 replies; 3+ messages in thread
From: Petr Vorel @ 2024-11-12 22:49 UTC (permalink / raw)
To: Wei Gao; +Cc: Xiao Yang, ltp
Hi all,
...
> > -* Description:
> > -* llistxattr is identical to listxattr. an empty buffer of size zero
> > -* can return the current size of the list of extended attribute names,
> > -* which can be used to estimate a suitable buffer.
> > -*/
> > + * Copyright (c) 2016 Fujitsu Ltd.
> > + * Author: Xiao Yang <yangx.jy@cn.fujitsu.com>
> > + */
> > +
> > +/*\
> > + * [Description]
> > + *
> > + * llistxattr is identical to listxattr. An empty buffer of size zero
> > + * can return the current size of the list of extended attribute names,
> > + * which can be used to estimate a suitable buffer.
> > + */
IMHO the best description was in v1 of the test:
https://lore.kernel.org/ltp/1454058489-25625-3-git-send-email-yangx.jy@cn.fujitsu.com/
llistxattr(2) with an empty buffer of size zero can return
the current size of the list of extended attribute names.
What was then in v3 committed is slightly misleading.
"llistxattr is identical to listxattr" is from man page, but it's IMHO
irrelevant. Also first "can" is wrong (it should always work, not just
sometimes).
I dared to rewrite before merge:
* Verify that llistxattr(2) call with zero size returns the current size of the
* list of extended attribute names, which can be used to determine the size of
* the buffer that should be supplied in a subsequent llistxattr(2) call.
Thanks!
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-11-12 22:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-31 8:59 [LTP] [PATCH] llistxattr03: Convert docs to docparse Ma Xinjian via ltp
2024-11-05 11:18 ` Wei Gao via ltp
2024-11-12 22:49 ` Petr Vorel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox