__builtin_clz(le32_to_cpu(bfs->sectorsize));
blkid_probe_set_fslastblock(pr,
le64_to_cpu(bfs->total_bytes) >> sectorsize_log);
- // The size is calculated without the RAID factor. It could not be
- // obtained from the superblock as it is property of device tree.
- // Without the factor we would show fs size with the redundant data. The
- // acquisition of the factor will require additional parsing of btrfs
- // tree.
+
+ /* The size is calculated without the RAID factor. It could not be
+ * obtained from the superblock as it is property of device tree.
+ * Without the factor we would show fs size with the redundant data. The
+ * acquisition of the factor will require additional parsing of btrfs
+ * tree.
+ */
blkid_probe_set_fssize(pr, le64_to_cpu(bfs->total_bytes));
return 0;
((s_feature_incompat & EXT4_FEATURE_INCOMPAT_64BIT) ?
(uint64_t) le32_to_cpu(es->s_blocks_count_hi) << 32 : 0);
blkid_probe_set_fslastblock(pr, fslastblock);
- // The total number of blocks is taken without substraction of overhead
- // (journal, metadata). The ext4 has non-trivial overhead calculation
- // viz. ext4_calculate_overhead(). Thefore, the FSSIZE would show number
- // slightly higher than the real value (for example, calculated via
- // statfs()).
- uint64_t fssize = (uint64_t)block_size*le32_to_cpu(es->s_blocks_count);
+
+ /* The total number of blocks is taken without substraction of overhead
+ * (journal, metadata). The ext4 has non-trivial overhead calculation
+ * viz. ext4_calculate_overhead(). Thefore, the FSSIZE would show number
+ * slightly higher than the real value (for example, calculated via
+ * statfs()).
+ */
+ uint64_t fssize = (uint64_t) block_size * le32_to_cpu(es->s_blocks_count);
blkid_probe_set_fssize(pr, fssize);
}