forked from Bananymous/banan-os
Kenrel: Fix inode comparison
We should not compare rdevs
This commit is contained in:
@@ -59,7 +59,7 @@ namespace Kernel
|
|||||||
|
|
||||||
bool can_access(const Credentials&, int);
|
bool can_access(const Credentials&, int);
|
||||||
|
|
||||||
bool operator==(const Inode& other) const { return dev() == other.dev() && rdev() == other.rdev() && ino() == other.ino(); }
|
bool operator==(const Inode& other) const { return dev() == other.dev() && ino() == other.ino(); }
|
||||||
|
|
||||||
virtual ino_t ino() const = 0;
|
virtual ino_t ino() const = 0;
|
||||||
virtual Mode mode() const = 0;
|
virtual Mode mode() const = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user