mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 02:54:54 +03:00
Ext2FileSystem: set_metadata_dirty(true) during write_directory().
This adds a call to set_metadata_dirty(true) to Ext2FS::write_directory(). This fixes a bug wherein InodeWatchers weren't alerted on directory updates.
This commit is contained in:
parent
554f28901b
commit
ee0eed26f4
Notes:
sideshowbarker
2024-07-19 11:07:33 +09:00
Author: https://github.com/DrewStratford Commit: https://github.com/SerenityOS/serenity/commit/ee0eed26f4b Pull-request: https://github.com/SerenityOS/serenity/pull/811
@ -896,6 +896,7 @@ bool Ext2FSInode::write_directory(const Vector<FS::DirectoryEntry>& entries)
|
||||
stream.fill_to_end(0);
|
||||
|
||||
ssize_t nwritten = write_bytes(0, directory_data.size(), directory_data.data(), nullptr);
|
||||
set_metadata_dirty(true);
|
||||
return nwritten == directory_data.size();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user