Lines Matching refs:where
493 const char *where; in mount_all() member
576 _cleanup_free_ char *where = NULL, *options = NULL, *prefixed = NULL; in mount_all() local
592 … r = chase_symlinks(mount_table[k].where, dest, CHASE_NONEXISTENT|CHASE_PREFIX_ROOT, &where, NULL); in mount_all()
594 … return log_error_errno(r, "Failed to resolve %s/%s: %m", dest, mount_table[k].where); in mount_all()
598 r = path_is_mount_point(where, NULL, 0); in mount_all()
600 … return log_error_errno(r, "Failed to detect whether %s is a mount point: %m", where); in mount_all()
609 r = mkdir_parents_safe(dest, where, 0755, u, u, 0); in mount_all()
611 r = mkdir_p_safe(dest, where, 0755, u, u, 0); in mount_all()
614 … return log_error_errno(r, "Failed to create directory %s: %m", where); in mount_all()
616 log_debug_errno(r, "Failed to create directory %s: %m", where); in mount_all()
626 r = touch(where); in mount_all()
629 … return log_error_errno(r, "Failed to create file %s: %m", where); in mount_all()
631 log_debug_errno(r, "Failed to create file %s: %m", where); in mount_all()
659 where, in mount_all()
710 _cleanup_free_ char *mount_opts = NULL, *where = NULL; in mount_bind() local
733 r = chase_symlinks(m->destination, dest, CHASE_PREFIX_ROOT|CHASE_NONEXISTENT, &where, NULL); in mount_bind()
738 if (stat(where, &dest_st) < 0) in mount_bind()
739 return log_error_errno(errno, "Failed to stat %s: %m", where); in mount_bind()
744 m->source, where); in mount_bind()
749 m->source, where); in mount_bind()
752 r = mkdir_parents_label(where, 0755); in mount_bind()
754 return log_error_errno(r, "Failed to make parents of %s: %m", where); in mount_bind()
761 r = mkdir_label(where, 0755); in mount_bind()
763 r = touch(where); in mount_bind()
765 return log_error_errno(r, "Failed to create mount point %s: %m", where); in mount_bind()
768 r = mount_nofollow_verbose(LOG_ERR, m->source, where, NULL, mount_flags, mount_opts); in mount_bind()
773 r = bind_remount_recursive(where, MS_RDONLY, MS_RDONLY, NULL); in mount_bind()
779 r = remount_idmap(where, uid_shift, uid_range, REMOUNT_IDMAP_HOST_ROOT); in mount_bind()
781 return log_error_errno(r, "Failed to map ids for bind mount %s: %m", where); in mount_bind()
789 _cleanup_free_ char *buf = NULL, *where = NULL; in mount_tmpfs() local
795 r = chase_symlinks(m->destination, dest, CHASE_PREFIX_ROOT|CHASE_NONEXISTENT, &where, NULL); in mount_tmpfs()
799 r = mkdir_p_label(where, 0755); in mount_tmpfs()
801 … return log_error_errno(r, "Creating mount point for tmpfs %s failed: %m", where); in mount_tmpfs()
809 … return mount_nofollow_verbose(LOG_ERR, "tmpfs", where, "tmpfs", MS_NODEV|MS_STRICTATIME, options); in mount_tmpfs()
828 _cleanup_free_ char *lower = NULL, *where = NULL, *escaped_source = NULL; in mount_overlay() local
835 r = chase_symlinks(m->destination, dest, CHASE_PREFIX_ROOT|CHASE_NONEXISTENT, &where, NULL); in mount_overlay()
839 r = mkdir_label(where, 0755); in mount_overlay()
841 … return log_error_errno(r, "Creating mount point for overlay %s failed: %m", where); in mount_overlay()
866 …return mount_nofollow_verbose(LOG_ERR, "overlay", where, "overlay", m->read_only ? MS_RDONLY : 0, … in mount_overlay()
870 _cleanup_free_ char *where = NULL, *source = NULL; in mount_inaccessible() local
877 r = chase_symlinks_and_stat(m->destination, dest, CHASE_PREFIX_ROOT, &where, &st, NULL); in mount_inaccessible()
887 … r = mount_nofollow_verbose(m->graceful ? LOG_DEBUG : LOG_ERR, source, where, NULL, MS_BIND, NULL); in mount_inaccessible()
891 …r = mount_nofollow_verbose(m->graceful ? LOG_DEBUG : LOG_ERR, NULL, where, NULL, MS_BIND|MS_RDONLY… in mount_inaccessible()
893 (void) umount_verbose(m->graceful ? LOG_DEBUG : LOG_ERR, where, UMOUNT_NOFOLLOW); in mount_inaccessible()
901 _cleanup_free_ char *where = NULL; in mount_arbitrary() local
907 r = chase_symlinks(m->destination, dest, CHASE_PREFIX_ROOT|CHASE_NONEXISTENT, &where, NULL); in mount_arbitrary()
911 r = mkdir_p_label(where, 0755); in mount_arbitrary()
913 … return log_error_errno(r, "Creating mount point for mount %s failed: %m", where); in mount_arbitrary()
916 return mount_nofollow_verbose(LOG_ERR, m->source, where, m->type_argument, 0, m->options); in mount_arbitrary()