As suggested by Ingo use a B_WATCH_VOLUME flag to tell the kernel to watch

the whole volume. Kernel part follows.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39106 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler
2010-10-24 00:49:20 +00:00
parent 32c2214392
commit bfff9df5eb
3 changed files with 24 additions and 6 deletions
+2 -3
View File
@@ -83,9 +83,8 @@ class BLooper;
class BHandler;
extern status_t watch_volume(const dev_t volume, uint32 flags,
BMessenger target);
extern status_t watch_volume(const dev_t volume, uint32 flags,
extern status_t watch_volume(dev_t volume, uint32 flags, BMessenger target);
extern status_t watch_volume(dev_t volume, uint32 flags,
const BHandler *handler, const BLooper *looper = NULL);
extern status_t watch_node(const node_ref *node, uint32 flags,
@@ -0,0 +1,14 @@
/*
* Copyright 2010, Clemens Zeidler, [email protected].
* Distributed under the terms of the MIT License.
*/
#ifndef _NODE_MONITOR_PRIVATE_H
#define _NODE_MONITOR_PRIVATE_H
enum {
B_WATCH_VOLUME = 0xF000
};
#endif /* _NODE_MONITOR_PRIVATE_H */