mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-24 21:34:08 +03:00
volume_id: ext - fix endianess in version number
This commit is contained in:
parent
702e02313c
commit
01ad1ef5f3
@ -94,8 +94,8 @@ int volume_id_probe_ext(struct volume_id *id, uint64_t off, uint64_t size)
|
|||||||
volume_id_set_label_raw(id, es->s_volume_name, 16);
|
volume_id_set_label_raw(id, es->s_volume_name, 16);
|
||||||
volume_id_set_label_string(id, es->s_volume_name, 16);
|
volume_id_set_label_string(id, es->s_volume_name, 16);
|
||||||
volume_id_set_uuid(id, es->s_uuid, UUID_DCE);
|
volume_id_set_uuid(id, es->s_uuid, UUID_DCE);
|
||||||
snprintf(id->type_version, sizeof(id->type_version)-1,
|
snprintf(id->type_version, sizeof(id->type_version)-1, "%u.%u",
|
||||||
"%u.%u", es->s_rev_level, es->s_minor_rev_level);
|
le32_to_cpu(es->s_rev_level), le16_to_cpu(es->s_minor_rev_level));
|
||||||
|
|
||||||
/* check for external journal device */
|
/* check for external journal device */
|
||||||
if ((le32_to_cpu(es->s_feature_incompat) & EXT3_FEATURE_INCOMPAT_JOURNAL_DEV) != 0) {
|
if ((le32_to_cpu(es->s_feature_incompat) & EXT3_FEATURE_INCOMPAT_JOURNAL_DEV) != 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user