fs: return device filesystem is mounted on

This commit is contained in:
Matheus
2024-06-16 12:32:32 -03:00
parent a524d9b48b
commit 5b6d15a06c
5 changed files with 23 additions and 4 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ static int dostat(vnode_t *vnode, stat_t *stat) {
if (e)
return e;
stat->dev = 0; // TODO properly return this
stat->dev = TODEV(attr.devmajor, attr.devminor);
stat->rdev = TODEV(attr.rdevmajor, attr.rdevminor);
stat->ino = attr.inode;
stat->nlink = attr.nlinks;