Skip to content

Commit

Permalink
Ext2FileSystem: set_metadata_dirty(true) during write_directory().
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
DrewStratford authored and awesomekling committed Nov 21, 2019
1 parent 554f289 commit ee0eed2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Kernel/FileSystem/Ext2FileSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit ee0eed2

Please sign in to comment.