Lines Matching refs:fstype

13 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()
117 mkfs = strjoin("mkfs.", fstype); in make_filesystem()
122 if (STR_IN_SET(fstype, "ext2", "ext3", "ext4", "xfs", "swap")) { in make_filesystem()
124 streq(fstype, "xfs") ? 12 : in make_filesystem()
125 streq(fstype, "swap") ? 15 : in make_filesystem()
133 } else if (streq(fstype, "vfat")) { in make_filesystem()
156 if (streq(fstype, "ext2")) in make_filesystem()
166 else if (STR_IN_SET(fstype, "ext3", "ext4")) in make_filesystem()
177 else if (streq(fstype, "btrfs")) { in make_filesystem()
186 } else if (streq(fstype, "f2fs")) { in make_filesystem()
197 } else if (streq(fstype, "xfs")) { in make_filesystem()
211 } else if (streq(fstype, "vfat")) in make_filesystem()
219 else if (streq(fstype, "swap")) in make_filesystem()
237 if (STR_IN_SET(fstype, "ext2", "ext3", "ext4", "btrfs", "f2fs", "xfs", "vfat", "swap")) in make_filesystem()
239 node, fstype, label, vol_id); in make_filesystem()
242 node, fstype); in make_filesystem()