dissect: add new helper dissected_partition_fstype()
Initially we only have one user, but following patches will add more.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user