chiark / gitweb /
core: properly pass unit file state to clients via the bus
[elogind.git] / src / core / mount.c
index 66de85b5789701825994d9736095a38024f582ed..e271d437cb536dacad4bf1431a502ebbd962719a 100644 (file)
@@ -41,7 +41,7 @@
 #include "unit-name.h"
 #include "dbus-mount.h"
 #include "special.h"
-#include "bus-errors.h"
+#include "bus-common-errors.h"
 #include "exit-status.h"
 #include "def.h"
 
@@ -1665,6 +1665,10 @@ static int mount_dispatch_io(sd_event_source *source, int fd, uint32_t revents,
         if (fd == m->utab_inotify_fd) {
                 bool rescan = false;
 
+                /* FIXME: We *really* need to replace this with
+                 * libmount's own API for this, we should not hardcode
+                 * internal behaviour of libmount here. */
+
                 for (;;) {
                         uint8_t buffer[INOTIFY_EVENT_MAX] _alignas_(struct inotify_event);
                         struct inotify_event *e;