char **ret_fstype,
sd_id128_t *ret_uuid) {
+#if HAVE_BLKID
_cleanup_(blkid_free_probep) blkid_probe b = NULL;
const char *fstype = NULL;
sd_id128_t id;
return r;
*ret_uuid = id;
return 0;
+#else
+ return -EOPNOTSUPP;
+#endif
}
static int probe_file_system_by_path(const char *path, char **ret_fstype, sd_id128_t *ret_uuid) {
uint64_t *ret_offset,
uint64_t *ret_size) {
+#if HAVE_BLKID
_cleanup_(blkid_free_probep) blkid_probe b = NULL;
sd_id128_t found_partition_uuid = SD_ID128_NULL;
const char *fstype = NULL, *pttype = NULL;
*ret_partition_uuid = found_partition_uuid;
return 0;
+#else
+ return -EOPNOTSUPP;
+#endif
}
static int crypt_device_to_evp_cipher(struct crypt_device *cd, const EVP_CIPHER **ret) {
}
static int context_wipe_range(Context *context, uint64_t offset, uint64_t size) {
+#if HAVE_BLKID
_cleanup_(blkid_free_probep) blkid_probe probe = NULL;
int r;
}
return 0;
+#else
+ return log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP),
+ "Cannot wipe partition signatures, libblkid support is not compiled in.");
+#endif
}
static int context_wipe_partition(Context *context, Partition *p) {
dev_t restrict_devno,
sd_id128_t *ret_uuid) {
+#if HAVE_BLKID
_cleanup_(blkid_free_probep) blkid_probe b = NULL;
_cleanup_close_ int fd = -EBADF;
_cleanup_free_ char *p = NULL;
*ret_uuid = u;
return true;
+#else
+ return log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP),
+ "Cannot check partition type UUID and device location, libblkid support is not compiled in.");
+#endif
}
static int resolve_copy_blocks_auto_candidate_harder(