25 #include <sys/inotify.h>
27 #include <seastar/core/future.hh>
28 #include <seastar/core/sstring.hh>
29 #include <seastar/core/shared_ptr.hh>
31 namespace seastar::experimental {
69 close_write = IN_CLOSE_WRITE,
70 close_nowrite = IN_CLOSE_NOWRITE,
71 create_child = IN_CREATE,
72 delete_child = IN_DELETE,
73 delete_self = IN_DELETE_SELF,
76 move_self = IN_MOVE_SELF,
77 move_from = IN_MOVED_FROM,
79 move_to = IN_MOVED_TO,
174 operator bool()
const {
181 return fsnotifier::flags(std::underlying_type_t<fsnotifier::flags>(a) | std::underlying_type_t<fsnotifier::flags>(b));
191 return fsnotifier::flags(std::underlying_type_t<fsnotifier::flags>(a) & std::underlying_type_t<fsnotifier::flags>(b));
Simple RAII wrapper around a fsnotifier::watch_token.
Definition: fsnotify.hh:106
watch_token token() const
Get the token of this watch point.
Definition: fsnotify.hh:124
Filesystem modification notifier.
Definition: fsnotify.hh:53
bool active() const
Check if the notifier is activated.
int32_t watch_token
Token of a watch point.
Definition: fsnotify.hh:94
uint32_t sequence_no
Unique sequence number of associating related events.
Definition: fsnotify.hh:100
future< watch > create_watch(const sstring &path, flags mask)
Monitor events specified in mask for the give path.
future< std::vector< event > > wait() const
flags
Flags of events supported by FileSystem Notifier.
Definition: fsnotify.hh:66
A wrapper around inotify_event.
Definition: fsnotify.hh:150
A representation of a possibly not-yet-computed value.
Definition: future.hh:1349
holds the implementation parts of the metrics layer, do not use directly.