X-Git-Url: https://git.sven.stormbind.net/?a=blobdiff_plain;f=dump%2Fdump.c;h=7ede5508cf8dd839b258951c0862281f5d46a83a;hb=refs%2Fheads%2Fmaster;hp=3d77bb9b094d1f3fc31585ba89b75647f48025d7;hpb=f542bb61a7ee5c41095242cf7b9b499fa014d316;p=sven%2Fexfatprogs.git diff --git a/dump/dump.c b/dump/dump.c index 3d77bb9..73a231a 100644 --- a/dump/dump.c +++ b/dump/dump.c @@ -131,8 +131,8 @@ static int exfat_show_ondisk_all_info(struct exfat_blk_dev *bd) exfat_info("Cluster Count: \t\t\t\t%u\n", total_clus); exfat_info("Root Cluster (cluster offset): \t\t%u\n", root_clu); exfat_info("Volume Serial: \t\t\t\t0x%x\n", le32_to_cpu(pbsx->vol_serial)); - exfat_info("Sector Size Bits: \t\t\t%u\n", pbsx->sect_size_bits); - exfat_info("Sector per Cluster bits: \t\t%u\n\n", pbsx->sect_per_clus_bits); + exfat_info("Bytes per Sector: \t\t\t%u\n", 1 << pbsx->sect_size_bits); + exfat_info("Sectors per Cluster: \t\t\t%u\n\n", 1 << pbsx->sect_per_clus_bits); bd->cluster_size = 1 << (pbsx->sect_per_clus_bits + pbsx->sect_size_bits); @@ -223,6 +223,7 @@ int main(int argc, char *argv[]) bool version_only = false; init_user_input(&ui); + ui.writeable = false; if (!setlocale(LC_CTYPE, "")) exfat_err("failed to init locale/codeset\n");