libblkid: stratis: correct byte order
Stratis superblock is little endian, ensure we retrieve the number of sectors and initialization time correctly. Signed-off-by: Tony Asleson <tasleson@redhat.com>
This commit is contained in:
parent
6bf071afa2
commit
ae62a1751f
|
@ -83,9 +83,9 @@ static int probe_stratis(blkid_probe pr,
|
|||
sizeof(stratis->pool_uuid));
|
||||
|
||||
blkid_probe_sprintf_value(pr, "BLOCKDEV_SECTORS", "%" PRIu64,
|
||||
stratis->sectors);
|
||||
le64_to_cpu(stratis->sectors));
|
||||
blkid_probe_sprintf_value(pr, "BLOCKDEV_INITTIME", "%" PRIu64,
|
||||
stratis->initialization_time);
|
||||
le64_to_cpu(stratis->initialization_time));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue