mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
Kernel: Populate stat.st_dev
with fsid
This allows userland programs to differentiate inodes on different filesystems.
This commit is contained in:
parent
4cefb02324
commit
ad984ba522
Notes:
sideshowbarker
2024-07-17 06:38:11 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/ad984ba522 Pull-request: https://github.com/SerenityOS/serenity/pull/21273 Reviewed-by: https://github.com/gmta ✅ Reviewed-by: https://github.com/supercomputer7 ✅
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue