Home
last modified time | relevance | path

Searched refs:fstype (Results 1 – 25 of 31) sorted by relevance

12

/systemd-251/src/shared/
Dmkfs-util.c13 int mkfs_exists(const char *fstype) { in mkfs_exists() argument
17 assert(fstype); in mkfs_exists()
19 … if (STR_IN_SET(fstype, "auto", "swap")) /* these aren't real file system types, refuse early */ in mkfs_exists()
22 mkfs = strjoina("mkfs.", fstype); in mkfs_exists()
91 const char *fstype, in make_filesystem() argument
101 assert(fstype); in make_filesystem()
104 if (streq(fstype, "swap")) { in make_filesystem()
111 r = mkfs_exists(fstype); in make_filesystem()
113 … return log_error_errno(r, "Failed to determine whether mkfs binary for %s exists: %m", fstype); in make_filesystem()
115 … log_error_errno(SYNTHETIC_ERRNO(EPROTONOSUPPORT), "mkfs binary for %s is not available.", fstype); in make_filesystem()
[all …]
Ddissect-image.c83 const char *fstype; in probe_filesystem() local
104 (void) blkid_probe_lookup_value(b, "TYPE", &fstype, NULL); in probe_filesystem()
106 if (fstype) { in probe_filesystem()
109 log_debug("Probed fstype '%s' on partition %s.", fstype, node); in probe_filesystem()
111 t = strdup(fstype); in probe_filesystem()
156 free(p->fstype); in dissected_partition_done()
379 const char *fstype = NULL, *options = NULL; in dissect_image() local
382 (void) blkid_probe_lookup_value(b, "TYPE", &fstype, NULL); in dissect_image()
384 if (fstype) { in dissect_image()
385 t = strdup(fstype); in dissect_image()
[all …]
Dgenerator.c145 const char *fstype) { in generator_write_fsck_deps() argument
166 if (!isempty(fstype) && !streq(fstype, "auto")) { in generator_write_fsck_deps()
167 r = fsck_exists(fstype); in generator_write_fsck_deps()
169 …g was requested for %s, but couldn't detect if fsck.%s may be used, proceeding: %m", what, fstype); in generator_write_fsck_deps()
172 … log_debug("Checking was requested for %s, but fsck.%s does not exist.", what, fstype); in generator_write_fsck_deps()
Dmkfs-util.h8 int mkfs_exists(const char *fstype);
10 int make_filesystem(const char *node, const char *fstype, const char *label, sd_id128_t uuid, bool …
Dfstab-util.c18 int fstab_has_fstype(const char *fstype) { in fstab_has_fstype() argument
32 if (streq(m->mnt_type, fstype)) in fstab_has_fstype()
Dfstab-util.h11 int fstab_has_fstype(const char *fstype);
/systemd-251/src/basic/
Dmountpoint-util.c362 bool fstype_is_network(const char *fstype) { in fstype_is_network() argument
365 x = startswith(fstype, "fuse."); in fstype_is_network()
367 fstype = x; in fstype_is_network()
369 if (nulstr_contains(filesystem_sets[FILESYSTEM_SET_NETWORK].value, fstype)) in fstype_is_network()
373 return STR_IN_SET(fstype, in fstype_is_network()
380 bool fstype_is_api_vfs(const char *fstype) { in fstype_is_api_vfs() argument
388 if (nulstr_contains(fs->value, fstype)) in fstype_is_api_vfs()
392 return STR_IN_SET(fstype, in fstype_is_api_vfs()
398 bool fstype_is_blockdev_backed(const char *fstype) { in fstype_is_blockdev_backed() argument
401 x = startswith(fstype, "fuse."); in fstype_is_blockdev_backed()
[all …]
Dmountpoint-util.h15 bool fstype_is_network(const char *fstype);
16 bool fstype_is_api_vfs(const char *fstype);
17 bool fstype_is_blockdev_backed(const char *fstype);
19 bool fstype_can_discard(const char *fstype);
20 bool fstype_can_uid_gid(const char *fstype);
Dpath-util.c763 int fsck_exists(const char *fstype) { in fsck_exists() argument
766 assert(fstype); in fsck_exists()
768 if (streq(fstype, "auto")) in fsck_exists()
771 checker = strjoina("fsck.", fstype); in fsck_exists()
Dpath-util.h101 int fsck_exists(const char *fstype);
/systemd-251/src/home/
Dhomework-mount.c22 static const char *mount_options_for_fstype(const char *fstype) { in mount_options_for_fstype() argument
26 assert(fstype); in mount_options_for_fstype()
29 n = strjoina("SYSTEMD_HOME_MOUNT_OPTIONS_", fstype); in mount_options_for_fstype()
34 if (streq(fstype, "ext4")) in mount_options_for_fstype()
36 if (streq(fstype, "xfs")) in mount_options_for_fstype()
38 if (streq(fstype, "btrfs")) in mount_options_for_fstype()
45 const char *fstype, in home_mount_node() argument
55 assert(fstype); in home_mount_node()
57 default_options = mount_options_for_fstype(fstype); in home_mount_node()
71 …r = mount_nofollow_verbose(LOG_ERR, node, HOME_RUNTIME_WORK_DIR, fstype, flags|MS_RELATIME, joined… in home_mount_node()
[all …]
Dhomework-luks.c128 const char *fstype = NULL, *uuid = NULL; in probe_file_system_by_fd() local
155 (void) blkid_probe_lookup_value(b, "TYPE", &fstype, NULL); in probe_file_system_by_fd()
156 if (!fstype) in probe_file_system_by_fd()
167 s = strdup(fstype); in probe_file_system_by_fd()
212 static int run_fsck(const char *node, const char *fstype) { in run_fsck() argument
217 assert(fstype); in run_fsck()
219 r = fsck_exists(fstype); in run_fsck()
221 … return log_error_errno(r, "Failed to check if fsck for file system %s exists: %m", fstype); in run_fsck()
223 log_warning("No fsck for file system %s installed, ignoring.", fstype); in run_fsck()
600 _cleanup_free_ char *fstype = NULL; in fs_validate() local
[all …]
Dhomework-mount.h6 int home_mount_node(const char *node, const char *fstype, bool discard, unsigned long flags, const …
8 int home_unshare_and_mount(const char *node, const char *fstype, bool discard, unsigned long flags,…
Dhome-util.c66 bool supported_fstype(const char *fstype) { in supported_fstype() argument
69 return STR_IN_SET(fstype, "ext4", "btrfs", "xfs"); in supported_fstype()
Dhome-util.h27 bool supported_fstype(const char *fstype);
Dhomed-home.c2156 statfs_f_type_t fstype = 0; in home_get_disk_status_luks() local
2234 fstype = sfs.f_type; in home_get_disk_status_luks()
2276 *ret_fstype = fstype; in home_get_disk_status_luks()
2297 statfs_f_type_t fstype = 0; in home_get_disk_status_directory() local
2327 fstype = sfs.f_type; in home_get_disk_status_directory()
2427 *ret_fstype = fstype; in home_get_disk_status_directory()
2515 const char *fstype; in home_augment_status() local
2545 fstype = fs_type_to_string(magic); in home_augment_status()
2564 … JSON_BUILD_PAIR_CONDITION(fstype, "fileSystemType", JSON_BUILD_STRING(fstype)), in home_augment_status()
/systemd-251/src/gpt-auto-generator/
Dgpt-auto-generator.c197 const char *fstype, in add_mount() argument
217 log_debug("Adding %s: %s fstype=%s", where, what, fstype ?: "(any)"); in add_mount()
219 if (streq_ptr(fstype, "crypto_LUKS")) { in add_mount()
225 fstype = NULL; in add_mount()
250 r = generator_write_fsck_deps(f, arg_dest, what, where, fstype); in add_mount()
265 if (fstype) in add_mount()
266 fprintf(f, "Type=%s\n", fstype); in add_mount()
335 p->fstype, in add_partition_mount()
361 if (streq_ptr(p->fstype, "crypto_LUKS")) { in add_swap()
410 const char *fstype, in add_automount() argument
[all …]
/systemd-251/src/partition/
Dmakefs.c21 _cleanup_free_ char *device = NULL, *fstype = NULL, *detected = NULL; in run() local
34 fstype = strdup(argv[1]); in run()
35 if (!fstype) in run()
68 return make_filesystem(device, fstype, basename(device), uuid, true); in run()
Dgrowfs.c33 static int resize_crypt_luks_device(dev_t devno, const char *fstype, dev_t main_devno) { in resize_crypt_luks_device() argument
89 _cleanup_free_ char *fstype = NULL, *devpath = NULL; in maybe_resize_underlying_device() local
115 r = probe_filesystem(devpath, &fstype); in maybe_resize_underlying_device()
122 if (streq_ptr(fstype, "crypto_LUKS")) in maybe_resize_underlying_device()
123 return resize_crypt_luks_device(devno, fstype, main_devno); in maybe_resize_underlying_device()
126 log_debug("Don't know how to resize %s of type %s, ignoring.", devpath, strnull(fstype)); in maybe_resize_underlying_device()
/systemd-251/src/core/
Dmount.c93 if (p->fstype && fstype_is_network(p->fstype)) in mount_is_network()
123 if (p->fstype && STR_IN_SET(p->fstype, "bind", "rbind")) in mount_is_bind()
161 if (p->fstype && fstype_is_network(p->fstype)) in mount_needs_quota()
240 p->fstype = mfree(p->fstype); in mount_parameters_done()
268 const char *fstype) { in update_parameters_proc_self_mountinfo() argument
283 w = free_and_strdup(&p->fstype, fstype); in update_parameters_proc_self_mountinfo()
543 if (streq_ptr(p->fstype, "tmpfs")) { in mount_add_default_dependencies()
799 prefix, p ? strna(p->fstype) : "n/a", in mount_dump()
1051 if (r >= 0 && p->fstype) in mount_enter_mounting()
1052 r = exec_command_append(m->control_command, "-t", p->fstype, NULL); in mount_enter_mounting()
[all …]
Ddbus-mount.c30 if (m->from_proc_self_mountinfo && m->parameters_proc_self_mountinfo.fstype) in mount_get_fstype()
31 return m->parameters_proc_self_mountinfo.fstype; in mount_get_fstype()
32 else if (m->from_fragment && m->parameters_fragment.fstype) in mount_get_fstype()
33 return m->parameters_fragment.fstype; in mount_get_fstype()
89 … return bus_set_transient_string(u, name, &m->parameters_fragment.fstype, message, flags, error); in bus_mount_set_transient_property()
Dmount.h34 char *fstype; member
/systemd-251/src/fstab-generator/
Dfstab-generator.c346 const char *fstype, in add_mount() argument
368 if (streq_ptr(fstype, "autofs")) in add_mount()
419 if (STRPTR_IN_SET(fstype, "nfs", "nfs4") && !(flags & MOUNT_AUTOMOUNT) && in add_mount()
443 r = generator_write_fsck_deps(f, dest, what, where, fstype); in add_mount()
468 if (!isempty(fstype) && !streq(fstype, "auto")) { in add_mount()
471 t = specifier_escape(fstype); in add_mount()
502 r = generator_hook_up_mkfs(dest, what, where, fstype); in add_mount()
745 const char *opts, *fstype; in add_sysroot_mount() local
791 fstype = arg_root_fstype ?: "tmpfs"; /* tmpfs, unless overridden */ in add_sysroot_mount()
800fstype = arg_root_fstype; /* if not specified explicitly, don't default to anything here */ in add_sysroot_mount()
[all …]
/systemd-251/src/nspawn/
Dnspawn-cgroup.c251 const char *to, *fstype, *opts; in mount_legacy_cgroup_hierarchy() local
267 fstype = "cgroup2"; in mount_legacy_cgroup_hierarchy()
270 fstype = "cgroup"; in mount_legacy_cgroup_hierarchy()
273 fstype = "cgroup"; in mount_legacy_cgroup_hierarchy()
277 … r = mount_nofollow_verbose(LOG_ERR, "cgroup", to, fstype, MS_NOSUID|MS_NOEXEC|MS_NODEV, opts); in mount_legacy_cgroup_hierarchy()
/systemd-251/src/shutdown/
Dumount.c76 const char *path, *fstype; in mount_points_list_get() local
93 fstype = mnt_fs_get_fstype(fs); in mount_points_list_get()
131 !fstype_is_network(fstype) && in mount_points_list_get()
132 !fstype_is_api_vfs(fstype) && in mount_points_list_get()
133 !fstype_is_ro(fstype) && in mount_points_list_get()

12