24 #ifndef SEASTAR_MODULE
26 #include <sys/inotify.h>
28 #include <seastar/core/future.hh>
29 #include <seastar/core/sstring.hh>
30 #include <seastar/core/shared_ptr.hh>
31 #include <seastar/util/modules.hh>
34 namespace seastar::experimental {
36 SEASTAR_MODULE_EXPORT_BEGIN
74 close_write = IN_CLOSE_WRITE,
75 close_nowrite = IN_CLOSE_NOWRITE,
76 create_child = IN_CREATE,
77 delete_child = IN_DELETE,
78 delete_self = IN_DELETE_SELF,
81 move_self = IN_MOVE_SELF,
82 move_from = IN_MOVED_FROM,
84 move_to = IN_MOVED_TO,
179 operator bool()
const {
186 return fsnotifier::flags(std::underlying_type_t<fsnotifier::flags>(a) | std::underlying_type_t<fsnotifier::flags>(b));
196 return fsnotifier::flags(std::underlying_type_t<fsnotifier::flags>(a) & std::underlying_type_t<fsnotifier::flags>(b));
206 SEASTAR_MODULE_EXPORT_END
Simple RAII wrapper around a fsnotifier::watch_token.
Definition: fsnotify.hh:111
watch_token token() const
Get the token of this watch point.
Definition: fsnotify.hh:129
Filesystem modification notifier.
Definition: fsnotify.hh:58
bool active() const
Check if the notifier is activated.
int32_t watch_token
Token of a watch point.
Definition: fsnotify.hh:99
uint32_t sequence_no
Unique sequence number of associating related events.
Definition: fsnotify.hh:105
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:71
A wrapper around inotify_event.
Definition: fsnotify.hh:155
A representation of a possibly not-yet-computed value.
Definition: future.hh:1225
holds the implementation parts of the metrics layer, do not use directly.