25#include <sys/inotify.h>
27#include <seastar/core/future.hh>
28#include <seastar/core/sstring.hh>
29#include <seastar/core/shared_ptr.hh>
30#include <seastar/util/modules.hh>
33namespace seastar::experimental {
35SEASTAR_MODULE_EXPORT_BEGIN
73 close_write = IN_CLOSE_WRITE,
74 close_nowrite = IN_CLOSE_NOWRITE,
75 create_child = IN_CREATE,
76 delete_child = IN_DELETE,
77 delete_self = IN_DELETE_SELF,
80 move_self = IN_MOVE_SELF,
81 move_from = IN_MOVED_FROM,
83 move_to = IN_MOVED_TO,
178 operator bool()
const {
185 return fsnotifier::flags(std::underlying_type_t<fsnotifier::flags>(a) | std::underlying_type_t<fsnotifier::flags>(b));
195 return fsnotifier::flags(std::underlying_type_t<fsnotifier::flags>(a) & std::underlying_type_t<fsnotifier::flags>(b));
205SEASTAR_MODULE_EXPORT_END
Simple RAII wrapper around a fsnotifier::watch_token.
Definition: fsnotify.hh:110
watch_token token() const
Get the token of this watch point.
Definition: fsnotify.hh:128
Filesystem modification notifier.
Definition: fsnotify.hh:57
bool active() const
Check if the notifier is activated.
int32_t watch_token
Token of a watch point.
Definition: fsnotify.hh:98
uint32_t sequence_no
Unique sequence number of associating related events.
Definition: fsnotify.hh:104
future< watch > create_watch(const sstring &path, flags mask)
Monitor events specified in mask for the give path.
flags
Flags of events supported by FileSystem Notifier.
Definition: fsnotify.hh:70
future< std::vector< event > > wait() const
A wrapper around inotify_event.
Definition: fsnotify.hh:154
A representation of a possibly not-yet-computed value.
Definition: future.hh:1240
holds the implementation parts of the metrics layer, do not use directly.