diff options
author | Andreas Kling <kling@serenityos.org> | 2021-04-30 15:51:06 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-30 15:51:06 +0200 |
commit | cd9be1733cf3a7b9cd3865ae4e375c7f025e6cd8 (patch) | |
tree | 15be6babcb2266d0e9eae1c07f0d471f9bcff7ab /Kernel/FileSystem/Ext2FileSystem.h | |
parent | a5f385f05265fa3a54b9f27d25b7ff6f48ce97f8 (diff) | |
download | serenity-cd9be1733cf3a7b9cd3865ae4e375c7f025e6cd8.zip |
Kernel: Make Inode::set_{a,c,m}time return KResult
This exposed some missing error propagation, which this patch also
takes care of.
Diffstat (limited to 'Kernel/FileSystem/Ext2FileSystem.h')
-rw-r--r-- | Kernel/FileSystem/Ext2FileSystem.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/FileSystem/Ext2FileSystem.h b/Kernel/FileSystem/Ext2FileSystem.h index 29ddeff046..25b55c9f87 100644 --- a/Kernel/FileSystem/Ext2FileSystem.h +++ b/Kernel/FileSystem/Ext2FileSystem.h @@ -47,9 +47,9 @@ private: virtual KResultOr<NonnullRefPtr<Inode>> create_child(const String& name, mode_t, dev_t, uid_t, gid_t) override; virtual KResult add_child(Inode& child, const StringView& name, mode_t) override; virtual KResult remove_child(const StringView& name) override; - virtual int set_atime(time_t) override; - virtual int set_ctime(time_t) override; - virtual int set_mtime(time_t) override; + virtual KResult set_atime(time_t) override; + virtual KResult set_ctime(time_t) override; + virtual KResult set_mtime(time_t) override; virtual KResult increment_link_count() override; virtual KResult decrement_link_count() override; virtual KResultOr<size_t> directory_entry_count() const override; |