BFS: Don't send duplicate attribute change notifications to queries on renames.

LiveUpdateRenameMove() sends create/remove notifications, so we
don't want to send duplicate ones in the LiveUpdate() hook.
This commit is contained in:
Augustin Cavalier
2025-04-30 16:50:08 -04:00
parent 915d8fbe17
commit 7998bc4204
3 changed files with 13 additions and 9 deletions
@@ -1299,7 +1299,8 @@ bfs_rename(fs_volume* _volume, fs_vnode* _oldDir, const char* oldName,
status = inode->SetName(transaction, newName);
if (status == B_OK) {
Index index(volume);
index.UpdateName(transaction, oldName, newName, inode);
index.UpdateName(transaction, oldName, newName, inode,
false /* we already updated live queries, above */);
}
}