stat: fix rdev

This commit is contained in:
Matheus
2023-06-27 20:22:05 -03:00
parent 0185572afc
commit df84a3f5f0
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -12,8 +12,8 @@ static int dostat(vnode_t *vnode, stat_t *stat) {
if (e)
return e;
// TODO dev rdev
stat->dev = 0; // TODO properly return this
stat->rdev = TODEV(attr.rdevmajor, attr.rdevminor);
stat->ino = attr.inode;
stat->nlink = attr.nlinks;
stat->mode = attr.mode | MAKETYPE(vfs_getposixtype(attr.type));