This check doesn't work for non-64bit filesystems, where the descriptor is only 32 bytes.
Checking the length also just isn't necessary: read_bytes is a private method that is only called from BlockGroupDescriptor::read, and the byte slice argument is always Superblock::sb.block_group_descriptor_size in length.
This check doesn't work for non-64bit filesystems, where the descriptor is only 32 bytes.
Checking the length also just isn't necessary:
read_bytes
is a private method that is only called fromBlockGroupDescriptor::read
, and the byte slice argument is alwaysSuperblock::sb.block_group_descriptor_size
in length.