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:
Drew Stratford 2019-11-13 21:42:24 +13:00 committed by Andreas Kling
parent 554f28901b
commit ee0eed26f4
Notes: sideshowbarker 2024-07-19 11:07:33 +09:00

View File

@ -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();
}