sb.flags_ was not being packed/unpacked correctly
This commit is contained in:
parent
8f0a868554
commit
dce7013577
@ -46,7 +46,7 @@ void
|
|||||||
superblock_traits::unpack(superblock_disk const &disk, superblock &value)
|
superblock_traits::unpack(superblock_disk const &disk, superblock &value)
|
||||||
{
|
{
|
||||||
value.csum_ = to_cpu<uint32_t>(disk.csum_);
|
value.csum_ = to_cpu<uint32_t>(disk.csum_);
|
||||||
value.flags_ = to_cpu<uint32_t>(disk.csum_);
|
value.flags_ = to_cpu<uint32_t>(disk.flags_);
|
||||||
value.blocknr_ = to_cpu<uint64_t>(disk.blocknr_);
|
value.blocknr_ = to_cpu<uint64_t>(disk.blocknr_);
|
||||||
|
|
||||||
::memcpy(value.uuid_, disk.uuid_, sizeof(value.uuid_));
|
::memcpy(value.uuid_, disk.uuid_, sizeof(value.uuid_));
|
||||||
@ -79,7 +79,7 @@ void
|
|||||||
superblock_traits::pack(superblock const &value, superblock_disk &disk)
|
superblock_traits::pack(superblock const &value, superblock_disk &disk)
|
||||||
{
|
{
|
||||||
disk.csum_ = to_disk<__le32>(value.csum_);
|
disk.csum_ = to_disk<__le32>(value.csum_);
|
||||||
disk.flags_ = to_disk<__le32>(value.csum_);
|
disk.flags_ = to_disk<__le32>(value.flags_);
|
||||||
disk.blocknr_ = to_disk<__le64>(value.blocknr_);
|
disk.blocknr_ = to_disk<__le64>(value.blocknr_);
|
||||||
|
|
||||||
::memcpy(disk.uuid_, value.uuid_, sizeof(disk.uuid_));
|
::memcpy(disk.uuid_, value.uuid_, sizeof(disk.uuid_));
|
||||||
|
Loading…
Reference in New Issue
Block a user