[LTP] [PATCH 1/1] statx04: Remove kernel comments in docparse

Petr Vorel pvorel@suse.cz
Fri Aug 19 13:22:56 CEST 2022


> Hi Petr

> On my owner metadata.html, I don't see  commit title(I guess network 
> problem)

No, you need to set environment variable LINUX_GIT, LINUX_STABLE_GIT and
GLIBC_GIT. There is also warning:

$ unset LINUX_GIT LINUX_STABLE_GIT GLIBC_GIT
$ cd metadata && make
WARN: git repository linux-git not defined. Define it in $LINUX_GIT
WARN: git repository linux-stable-git not defined. Define it in $LINUX_STABLE_GIT
WARN: git repository glibc-git not defined. Define it in $GLIBC_GIT


> Tag	Info
> linux-git  93bc420ed41d

> linux-git 99652ea56a41

> linux-git  04a87e347282

> linux-git 5f955f26f3d4

> linux-git e408e695f5f1

> So for me, If remove kernel commit in description, then I only see
> useless commit id number, unless I go to search them in kernel org.

> I prefer to keep these kernel commit comment.

I would still suggest to have change them as normal C comments - that's enough
for reading C source. We already added released docs to
linux-test-project.github.io [1], I plan to add hook to to push master version
there after each commit and stable after release (after pushing tag).
Then we can add this link to README.md to propagate docs.

Kind regards,
Petr

[1] http://linux-test-project.github.io/metadata/metadata.stable.html

> Best Regards
> Yang Xu


> > Hi Petr

> > Oh, I see commit title in metadata that I don't see it before.

> > Tag	   Info
> > linux-git 93bc420ed41d ("ext2: support statx syscall")

> > linux-git 99652ea56a41 ("ext4: Add statx support")

> > linux-git 04a87e347282 ("Btrfs: add statx support")

> > linux-git 5f955f26f3d4 ("xfs: report crtime and attribute flags to statx")


> > But user that doesn't use metadata(miss this usage or miss dependent
> > package ie rubygem-asciidoctor), then they only see some numbers in tag
> > but know nothing.

> > IMO, it is not clear like min_kever.

> > Best Regards
> > Yang Xu
> >> They are defined in .tags, having in docparse results into poor
> >> formating in metadata.{html,pdf}.

> >> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> >> ---
> >> Hi Li,

> >> I've done cleanup like this in the past, but sending a patch just to
> >> make consensus about it. If we prefer to have git commits like this in
> >> the code (i.e. if being in .tags is not enough), they should be in
> >> normal comments /* ... */ so that they aren't in docparse.

> >> IMHO docparse can mention some commit if wanted to add some description,
> >> but just as 5f955f26f3d4 or 5f955f26f3d4 ("xfs: report crtime and
> >> attribute flags to statx") if the commit subject is a description
> >> itself.

> >> http://linux-test-project.github.io/metadata/metadata.stable.html#statx04

> >> Kind regards,
> >> Petr

> >>    testcases/kernel/syscalls/statx/statx04.c | 35 +----------------------
> >>    1 file changed, 1 insertion(+), 34 deletions(-)

> >> diff --git a/testcases/kernel/syscalls/statx/statx04.c b/testcases/kernel/syscalls/statx/statx04.c
> >> index 98f9a6315..6c562b3d7 100644
> >> --- a/testcases/kernel/syscalls/statx/statx04.c
> >> +++ b/testcases/kernel/syscalls/statx/statx04.c
> >> @@ -14,41 +14,8 @@
> >>     * - STATX_ATTR_NODUMP: File is not a candidate for backup when a backup
> >>     *                        program such as dump(8) is run.
> >>     *
> >> - * xfs filesystem doesn't support STATX_ATTR_COMPRESSED flag, so we only test
> >> + * XFS filesystem doesn't support STATX_ATTR_COMPRESSED flag, so we only test
> >>     * three other flags.
> >> - *
> >> - * ext2, ext4, btrfs, xfs and tmpfs support statx syscall since the following commit
> >> - *
> >> - *  commit 93bc420ed41df63a18ae794101f7cbf45226a6ef
> >> - *  Author: yangerkun <yangerkun@huawei.com>
> >> - *  Date:   Mon Feb 18 09:07:02 2019 +0800
> >> - *
> >> - *  ext2: support statx syscall
> >> - *
> >> - *  commit 99652ea56a4186bc5bf8a3721c5353f41b35ebcb
> >> - *  Author: David Howells <dhowells@redhat.com>
> >> - *  Date:   Fri Mar 31 18:31:56 2017 +0100
> >> - *
> >> - *  ext4: Add statx support
> >> - *
> >> - *  commit 04a87e3472828f769a93655d7c64a27573bdbc2c
> >> - *  Author: Yonghong Song <yhs@fb.com>
> >> - *  Date:   Fri May 12 15:07:43 2017 -0700
> >> - *
> >> - *  Btrfs: add statx support
> >> - *
> >> - *  commit 5f955f26f3d42d04aba65590a32eb70eedb7f37d
> >> - *  Author: Darrick J. Wong <darrick.wong@oracle.com>
> >> - *  Date:   Fri Mar 31 18:32:03 2017 +0100
> >> - *
> >> - *  xfs: report crtime and attribute flags to statx
> >> - *
> >> - *  commit e408e695f5f1f60d784913afc45ff2c387a5aeb8
> >> - *  Author: Theodore Ts'o <tytso@mit.edu>
> >> - *  Date:   Thu Jul 14 21:59:12 2022 -0400
> >> - *
> >> - *  mm/shmem: support FS_IOC_[SG]ETFLAGS in tmpfs
> >> - *
> >>     */

> >>    #define _GNU_SOURCE



More information about the ltp mailing list