#include <sys/quota.h>
#include <sys/stat.h>
+#include "sd-id128.h"
+
#include "btrfs-util.h"
#include "bus-common-errors.h"
#include "bus-error.h"
return 0;
if (r < 0)
return log_error_errno(r, "Failed to acquire ID_PART_ENTRY_TYPE device property, ignoring: %m");
- if (id128_equal_string(parttype, GPT_USER_HOME) <= 0) {
+ if (sd_id128_string_equal(parttype, GPT_USER_HOME) <= 0) {
log_debug("Found partition (%s) we don't care about, ignoring.", sysfs);
return 0;
}
#include "sd-daemon.h"
#include "sd-device.h"
#include "sd-event.h"
+#include "sd-id128.h"
#include "blkid-util.h"
#include "blockdev-util.h"
#include "home-util.h"
#include "homework-luks.h"
#include "homework-mount.h"
-#include "id128-util.h"
#include "io-util.h"
#include "keyring-util.h"
#include "memory-util.h"
if (!pp)
return errno > 0 ? -errno : -EIO;
- if (id128_equal_string(blkid_partition_get_type_string(pp), GPT_USER_HOME) <= 0)
+ if (sd_id128_string_equal(blkid_partition_get_type_string(pp), GPT_USER_HOME) <= 0)
continue;
if (!streq_ptr(blkid_partition_get_name(pp), label))
#include <sys/vfs.h>
#include "sd-device.h"
+#include "sd-id128.h"
#include "alloc-util.h"
#include "blkid-util.h"
#include "errno-util.h"
#include "find-esp.h"
#include "gpt.h"
-#include "id128-util.h"
#include "parse-util.h"
#include "path-util.h"
#include "stat-util.h"
r = blkid_probe_lookup_value(b, "PART_ENTRY_TYPE", &v, NULL);
if (r != 0)
return log_error_errno(errno ?: EIO, "Failed to probe partition type UUID of \"%s\": %m", node);
- if (id128_equal_string(v, GPT_ESP) <= 0)
+ if (sd_id128_string_equal(v, GPT_ESP) <= 0)
return log_full_errno(searching ? LOG_DEBUG : LOG_ERR,
SYNTHETIC_ERRNO(searching ? EADDRNOTAVAIL : ENODEV),
"File system \"%s\" has wrong type for an EFI System Partition (ESP).", node);
r = sd_device_get_property_value(d, "ID_PART_ENTRY_TYPE", &v);
if (r < 0)
return log_error_errno(r, "Failed to get device property: %m");
- if (id128_equal_string(v, GPT_ESP) <= 0)
+ if (sd_id128_string_equal(v, GPT_ESP) <= 0)
return log_full_errno(searching ? LOG_DEBUG : LOG_ERR,
SYNTHETIC_ERRNO(searching ? EADDRNOTAVAIL : ENODEV),
"File system \"%s\" has wrong type for an EFI System Partition (ESP).", node);
r = blkid_probe_lookup_value(b, "PART_ENTRY_TYPE", &v, NULL);
if (r != 0)
return log_error_errno(errno ?: SYNTHETIC_ERRNO(EIO), "%s: Failed to probe PART_ENTRY_TYPE: %m", node);
- if (id128_equal_string(v, GPT_XBOOTLDR) <= 0)
+ if (sd_id128_string_equal(v, GPT_XBOOTLDR) <= 0)
return log_full_errno(searching ? LOG_DEBUG : LOG_ERR,
searching ? SYNTHETIC_ERRNO(EADDRNOTAVAIL) : SYNTHETIC_ERRNO(ENODEV),
"%s: Partitition has wrong PART_ENTRY_TYPE=%s for XBOOTLDR partition.", node, v);
if (r < 0)
return log_device_error_errno(d, r, "Failed to query ID_PART_ENTRY_TYPE: %m");
- r = id128_equal_string(v, GPT_XBOOTLDR);
+ r = sd_id128_string_equal(v, GPT_XBOOTLDR);
if (r < 0)
return log_device_error_errno(d, r, "Failed to parse ID_PART_ENTRY_TYPE=%s: %m", v);
if (r == 0)