diff --git a/headers/private/storage/AddOnMonitorHandler.h b/headers/private/storage/AddOnMonitorHandler.h index 9e47c2c9e0..ae03bd7d72 100644 --- a/headers/private/storage/AddOnMonitorHandler.h +++ b/headers/private/storage/AddOnMonitorHandler.h @@ -67,7 +67,8 @@ protected: const char *fromName, ino_t fromDirectory, ino_t toDirectory, dev_t device, ino_t node, dev_t nodeDevice); - virtual void StatChanged(ino_t node, dev_t device); + virtual void StatChanged(ino_t node, dev_t device, + int32 statFields); private: void _HandlePendingEntries(); diff --git a/headers/private/storage/NodeMonitorHandler.h b/headers/private/storage/NodeMonitorHandler.h index b6eb40b7d8..5f4aeb1e67 100644 --- a/headers/private/storage/NodeMonitorHandler.h +++ b/headers/private/storage/NodeMonitorHandler.h @@ -33,7 +33,7 @@ protected: virtual void EntryMoved(const char *name, const char *fromName, ino_t fromDirectory, ino_t toDirectory, dev_t device, ino_t node, dev_t nodeDevice); - virtual void StatChanged(ino_t node, dev_t device); + virtual void StatChanged(ino_t node, dev_t device, int32 statFields); virtual void AttrChanged(ino_t node, dev_t device); virtual void DeviceMounted(dev_t new_device, dev_t device, ino_t directory); diff --git a/src/kits/storage/AddOnMonitorHandler.cpp b/src/kits/storage/AddOnMonitorHandler.cpp index 59c05734a3..18b97b4642 100644 --- a/src/kits/storage/AddOnMonitorHandler.cpp +++ b/src/kits/storage/AddOnMonitorHandler.cpp @@ -413,7 +413,7 @@ AddOnMonitorHandler::EntryMoved(const char *name, const char *fromName, void -AddOnMonitorHandler::StatChanged(ino_t node, dev_t device) +AddOnMonitorHandler::StatChanged(ino_t node, dev_t device, int32 statFields) { // This notification is received for the add-ons themselves. diff --git a/src/kits/storage/NodeMonitorHandler.cpp b/src/kits/storage/NodeMonitorHandler.cpp index b2298a405c..d9717c778a 100644 --- a/src/kits/storage/NodeMonitorHandler.cpp +++ b/src/kits/storage/NodeMonitorHandler.cpp @@ -110,7 +110,7 @@ NodeMonitorHandler::EntryMoved(const char *name, const char *fromName, /* virtual */ void -NodeMonitorHandler::StatChanged(ino_t node, dev_t device) +NodeMonitorHandler::StatChanged(ino_t node, dev_t device, int32 statFields) { // ignore } @@ -208,11 +208,13 @@ NodeMonitorHandler::HandleStatChanged(BMessage * msg) { ino_t node; dev_t device; + int32 statFields; if ((msg->FindInt64("node", &node) != B_OK) || - (msg->FindInt32("device", &device) != B_OK)) { + (msg->FindInt32("device", &device) != B_OK) || + (msg->FindInt32("fields", &statFields) != B_OK)) { return B_MESSAGE_NOT_UNDERSTOOD; } - StatChanged(node, device); + StatChanged(node, device, statFields); return B_OK; }