diff options
| author | Alejandro Colomar <alx@kernel.org> | 2025-05-28 20:59:11 +0200 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2025-11-09 13:06:02 +0100 |
| commit | 214c38a56bef9c512b5b8695fb141ffb96c23499 (patch) | |
| tree | d67f870852a0d538b3c56e9132aa79586beaba93 /man/man3/readdir.3 | |
| parent | 573f28a9954ac043eeb1bc57815c88ecedeb1268 (diff) | |
| download | man-pages-214c38a56bef9c512b5b8695fb141ffb96c23499.tar.gz | |
man/man3/readdir.3, man/man3type/stat.3type: Improve documentation about .d_ino and .st_ino
Suggested-by: Pali Rohár <pali@kernel.org>
Co-authored-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Pali Rohár <pali@kernel.org>
Co-authored-by: Jan Kara <jack@suse.cz>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: "Darrick J. Wong" <djwong@kernel.org>
Cc: "G. Branden Robinson" <branden@debian.org>
Cc: <linux-fsdevel@vger.kernel.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man/man3/readdir.3')
| -rw-r--r-- | man/man3/readdir.3 | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/man/man3/readdir.3 b/man/man3/readdir.3 index e1c7d2a6a6..e0870d0f6b 100644 --- a/man/man3/readdir.3 +++ b/man/man3/readdir.3 @@ -58,7 +58,24 @@ The fields of the structure are as follows: .TP .I .d_ino -This is the inode number of the file. +This is the inode number of the file +in the filesystem containing +the directory on which +.BR readdir () +was called. +If the directory entry is a mount point, +then +.I .d_ino +differs from +.I .st_ino +returned by +.BR stat (2) +on this file: +.I .d_ino +is the inode number of the mount point, +while +.I .st_ino +is the inode number of the root directory of the mounted filesystem. .TP .I .d_off The value returned in |
