diff options
Diffstat (limited to 'Kernel/InodeMetadata.h')
-rw-r--r-- | Kernel/InodeMetadata.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/InodeMetadata.h b/Kernel/InodeMetadata.h index 8d6f08e942..8a5ffeb87b 100644 --- a/Kernel/InodeMetadata.h +++ b/Kernel/InodeMetadata.h @@ -30,6 +30,7 @@ struct InodeMetadata { bool is_directory() const { return ::is_directory(mode); } bool is_character_device() const { return ::is_character_device(mode); } bool is_block_device() const { return ::is_block_device(mode); } + bool is_device() const { return is_character_device() || is_block_device(); } bool is_regular_file() const { return ::is_regular_file(mode); } bool is_fifo() const { return ::is_fifo(mode); } bool is_symlink() const { return ::is_symlink(mode); } |