Re: [PATCH v2 xfstests 0/3] add generic/795
ChenXiaoSong <[email protected]> Wed, 22 Jul 2026 10:50:00 +0800
| Newsgroups | org.kernel.vger.fstests,org.kernel.vger.linux-cifs |
|---|---|
| Message-ID | <[email protected]> |
Yes, I checked the xfs_io source code, and it does indeed call the fstat() system call. Thanks for your suggestion! I will send the next version soon. https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/tree/io/stat.c#n552 https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git/tree/io/stat.c#n166 在 2026/7/22 5:21, Zorro Lang 写道: > Please note that I have been talking about xfs_io stat subcommand all along, rather > than the coreutils' stat command. I suspect there might be a misunderstanding here. > > xfstests inherently depends on xfsprogs, particularly the xfs_io command. > I just checked this for you, the stat subcommand in xfs_io does indeed use > the fstat system call [1][2], not statx, and its -r option will print out fields > like st_nlink. > > Please double-check this on your end, make sure it works for you. -- ChenXiaoSong <[email protected]> Chinese Homepage: https://chenxiaosong.com English Homepage: https://chenxiaosong.com/en