dissect: add new helper dissected_partition_fstype()

Initially we only have one user, but following patches will add more.
This commit is contained in:
Lennart Poettering
2023-03-09 16:15:26 +01:00
parent 7d3b157b77
commit c571dee74b
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -193,3 +193,9 @@ int dissect_fstype_ok(const char *fstype);
int probe_sector_size(int fd, uint32_t *ret);
int probe_sector_size_prefer_ioctl(int fd, uint32_t *ret);
static inline const char *dissected_partition_fstype(const DissectedPartition *m) {
assert(m);
return m->decrypted_node ? m->decrypted_fstype : m->fstype;
}