Kernel: Populate stat.st_dev with fsid

This allows userland programs to differentiate inodes on different
filesystems.
This commit is contained in:
Tim Ledbetter 2023-09-30 06:13:32 +01:00 committed by Jelle Raaijmakers
parent 4cefb02324
commit ad984ba522
Notes: sideshowbarker 2024-07-17 06:38:11 +09:00

View file

@ -104,7 +104,7 @@ struct InodeMetadata {
buffer.st_nlink = link_count;
buffer.st_uid = uid.value();
buffer.st_gid = gid.value();
buffer.st_dev = 0; // FIXME
buffer.st_dev = inode.fsid().value();
buffer.st_size = size;
buffer.st_blksize = block_size;
buffer.st_blocks = block_count;