Re: [PATCH] fstat02: Verify st_ino field

Andrea Cervesato via ltp <[email protected]>
Newsgroups gmane.linux.ltp
Message-ID <[email protected]>
Hi Jinseok,

besides the error discovered by the agent, this patch is missing the
testing point. We are calling stat() on a hard link, which is actually
following the path and getting the file status information.

That means we are testing IF stat() provides the same inode number
of fstat() on the same file while following a hard link.

Why not just calling stat() on the file then? Also, they end up
calling the same vfs_getattr(), while only the path lookup actually
changes.

As you can see from the other tests for fstat()/stat()/lstat() syscalls,
the idea is to compare them _only_ when there's a layer in between them,
otherwise the information coming from the syscall should be compared only
with specific setup that we force on files before obtaining any data.

I will reject this patch for this reason, since a similar pattern has
been achieved by lstat03.c already.

Regards,
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato-IBi9RG/[email protected]

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.