Lines Matching refs:mount
28 #include "dbus-mount.h"
36 #include "mount-setup.h"
37 #include "mount-util.h"
38 #include "mount.h"
131 if (unit_has_name(u, "-.mount")) {
137 * dep loop, don't use kmsg logging for -.mount */
142 /* We need to make sure that /usr/bin/mount is always called
144 * side doesn't send us another mount request while we are
178 (void) sd_event_source_set_description(m->timer_event_source, "mount-timer");
251 /* Adds in links to other mount points that might lie further
263 /* Adds in links to other mount points that might be needed
264 * for the source path (if this is a bind mount) to be
376 if (p && fstab_test_option(p->options, "x-initrd.mount\0") &&
417 * after this mount unit is stopped. */
463 r = unit_name_from_path(m->where, ".mount", &e);
465 return log_unit_error_errno(UNIT(m), r, "Failed to generate unit name from mount path: %m");
473 log_unit_error(UNIT(m), "Cannot create mount unit for API file system %s. Refusing.", m->where);
919 log_unit_warning_errno(UNIT(m), r, "Failed to run 'mount' task: %m");
1166 /* Note that mount(8) returning and the kernel sending us a
1167 * mount table change event might happen out-of-order. If an
1170 * we check if the kernel still knows about the mount. and
1208 /* Still a mount point? If so, let's
1210 * multiple mount points stacked on
1215 * the mount command. */
1348 /* Ignore API mount points. They should never be referenced in
1360 r = unit_name_from_path(where, ".mount", &e);
1483 log_warning_errno(r, "Failed to set up mount unit: %m");
1593 log_error_errno(r, "Failed to enable watching of kernel mount events: %m");
1599 log_error_errno(r, "Failed to enable watching of userspace mount events: %m");
1612 log_error_errno(r, "Failed to watch mount file descriptor: %m");
1618 log_error_errno(r, "Failed to adjust mount watch priority: %m");
1622 (void) sd_event_source_set_description(m->mount_event_source, "mount-monitor-dispatch");
1651 * Note that libmount also monitors /run/mount mkdir if the
1673 Mount *mount = MOUNT(u);
1675 mount->is_mounted = mount->just_mounted = mount->just_changed = false;
1684 Mount *mount = MOUNT(u);
1686 if (!mount->is_mounted) {
1688 /* A mount point is not around right now. It
1692 if (mount->from_proc_self_mountinfo &&
1693 mount->parameters_proc_self_mountinfo.what) {
1697 set_put(gone, mount->parameters_proc_self_mountinfo.what) < 0)
1701 mount->from_proc_self_mountinfo = false;
1703 switch (mount->state) {
1709 mount_enter_dead(mount, MOUNT_SUCCESS);
1716 } else if (mount->just_mounted || mount->just_changed) {
1718 /* A mount point was added or changed */
1720 switch (mount->state) {
1727 mount_enter_mounted(mount, MOUNT_SUCCESS);
1731 mount_set_state(mount, MOUNT_MOUNTING_DONE);
1740 mount_set_state(mount, mount->state);
1745 if (mount->is_mounted &&
1746 mount->from_proc_self_mountinfo &&
1747 mount->parameters_proc_self_mountinfo.what) {
1750 set_put(around, mount->parameters_proc_self_mountinfo.what) < 0)
1755 mount->is_mounted = mount->just_mounted = mount->just_changed = false;
1864 [JOB_FAILED] = "Failed to mount %s.",