Lines Matching refs:fstype
83 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()
395 m->encrypted = streq_ptr(fstype, "crypto_LUKS"); in dissect_image()
415 .rw = !m->verity_ready && !fstype_is_ro(fstype), in dissect_image()
418 .fstype = TAKE_PTR(t), in dissect_image()
523 const char *stype, *sid, *fstype = NULL, *label; in dissect_image() local
574 fstype = "vfat"; in dissect_image()
624 fstype = "DM_verity_hash"; in dissect_image()
646 fstype = "verity_hash_signature"; in dissect_image()
685 fstype = "DM_verity_hash"; in dissect_image()
707 fstype = "verity_hash_signature"; in dissect_image()
799 if (fstype) { in dissect_image()
800 t = strdup(fstype); in dissect_image()
829 .fstype = TAKE_PTR(t), in dissect_image()
1153 if (!p->fstype && p->node) { in dissect_image()
1154 r = probe_filesystem(p->node, &p->fstype); in dissect_image()
1159 if (streq_ptr(p->fstype, "crypto_LUKS")) in dissect_image()
1162 if (p->fstype && fstype_is_ro(p->fstype)) in dissect_image()
1218 static int run_fsck(const char *node, const char *fstype) { in run_fsck() argument
1223 assert(fstype); in run_fsck()
1225 r = fsck_exists(fstype); in run_fsck()
1227 … log_debug_errno(r, "Couldn't determine whether fsck for %s exists, proceeding anyway.", fstype); in run_fsck()
1231 … log_debug("Not checking partition %s, as fsck for %s does not exist.", node, fstype); in run_fsck()
1304 const char *p, *node, *fstype; in mount_partition() local
1313 fstype = m->decrypted_node ? m->decrypted_fstype: m->fstype; in mount_partition()
1317 if (!fstype) in mount_partition()
1323 if (streq(fstype, "crypto_LUKS")) in mount_partition()
1329 r = run_fsck(node, fstype); in mount_partition()
1359 if (fstype_can_discard(fstype) && in mount_partition()
1369 if (fstype_can_uid_gid(fstype)) { in mount_partition()
1402 if (!rw && STRPTR_IN_SET(fstype, "ext3", "ext4", "xfs", "btrfs")) in mount_partition()
1406 … r = mount_nofollow_verbose(LOG_DEBUG, node, p, fstype, MS_NODEV|(rw ? 0 : MS_RDONLY), options); in mount_partition()
1699 if (!m->found || !m->node || !m->fstype) in decrypt_partition()
1702 if (!streq(m->fstype, "crypto_LUKS")) in decrypt_partition()
1967 if (!m->found || !m->node || !m->fstype) in verity_partition()
1970 if (!v->found || !v->node || !v->fstype) in verity_partition()
1973 if (!streq(v->fstype, "DM_verity_hash")) in verity_partition()