summaryrefslogtreecommitdiff
path: root/src/shared/dissect-image.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/dissect-image.h')
-rw-r--r--src/shared/dissect-image.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shared/dissect-image.h b/src/shared/dissect-image.h
index 6b90895216..ff69ec4539 100644
--- a/src/shared/dissect-image.h
+++ b/src/shared/dissect-image.h
@@ -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;
+}