btrfs-progs: increase size of BTRFS_FEATURE_STRING_BUF_SIZE

We're getting more features and the string size limit will not be
sufficient, so extend enough that we won't have to care for some time.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2023-10-02 18:40:06 +02:00
parent 7db445a3de
commit 8d3193da89

View File

@ -41,7 +41,7 @@ struct btrfs_mkfs_features {
* Such buffer size should be able to contain all feature string, with extra
* ", " for each feature.
*/
#define BTRFS_FEATURE_STRING_BUF_SIZE (160)
#define BTRFS_FEATURE_STRING_BUF_SIZE (512)
static const struct btrfs_mkfs_features btrfs_mkfs_default_features = {
.compat_ro_flags = BTRFS_FEATURE_COMPAT_RO_FREE_SPACE_TREE |