Qu Wenruo fc57ad8d33 btrfs: add sysfs interface for supported sectorsize
Export supported sector sizes in /sys/fs/btrfs/features/supported_sectorsizes.

Currently all architectures have PAGE_SIZE, There's some disparity
between read-only and read-write support but that will be unified in the
future so there's only one file exporting the size.

The read-only support for systems with 64K pages also works for 4K
sector size.

This new sysfs interface would help eg. mkfs.btrfs to print more
accurate warnings about potentially incompatible option combinations.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2021-04-19 17:25:18 +02:00
..
2021-02-23 13:39:45 -08:00
2021-01-24 14:27:20 +01:00
2021-03-25 15:38:22 -07:00
2021-02-09 02:46:07 +01:00
2019-11-18 23:43:44 +01:00
2020-10-07 12:06:57 +02:00
2020-05-25 11:25:37 +02:00
2020-10-07 12:13:17 +02:00
2021-03-05 12:21:14 -08:00
2021-04-11 11:53:36 -07:00