btrfs-progs: mkfs: warn if page does not match sectorsize
Be verbose about the potential compatibility problems with the sectorsize and page size. Also print the page size on the overview. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
42f98fcc88
commit
e406abb157
|
@ -628,8 +628,10 @@ int btrfs_check_sectorsize(u32 sectorsize)
|
||||||
|
|
||||||
if (!sectorsize_checked)
|
if (!sectorsize_checked)
|
||||||
warning(
|
warning(
|
||||||
"the filesystem may not be mountable, sectorsize %u doesn't match page size %u",
|
"sectorsize %u does not match host CPU page size %u, with kernels 6.x and up\n"
|
||||||
sectorsize, page_size);
|
"\t the 4KiB sectorsize is supported on all architectures but other combinations\n"
|
||||||
|
"\t may fail the filesystem mount, use \"--sectorsize %u\" to override that\n",
|
||||||
|
sectorsize, page_size, page_size);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2000,7 +2000,8 @@ raid_groups:
|
||||||
if (dev_uuid[0] != 0)
|
if (dev_uuid[0] != 0)
|
||||||
printf("Device UUID: %s\n", mkfs_cfg.dev_uuid);
|
printf("Device UUID: %s\n", mkfs_cfg.dev_uuid);
|
||||||
printf("Node size: %u\n", nodesize);
|
printf("Node size: %u\n", nodesize);
|
||||||
printf("Sector size: %u\n", sectorsize);
|
printf("Sector size: %u\t(CPU page size: %lu)\n",
|
||||||
|
sectorsize, sysconf(_SC_PAGESIZE));
|
||||||
printf("Filesystem size: %s\n",
|
printf("Filesystem size: %s\n",
|
||||||
pretty_size(btrfs_super_total_bytes(fs_info->super_copy)));
|
pretty_size(btrfs_super_total_bytes(fs_info->super_copy)));
|
||||||
printf("Block group profiles:\n");
|
printf("Block group profiles:\n");
|
||||||
|
|
Loading…
Reference in New Issue