2016-11-05 21:23:30 +01:00
|
|
|
From: Jeff Mahoney <jeffm@suse.com>
|
|
|
|
Subject: mkfs: allow site to override defaults
|
|
|
|
Patch-mainline: Never, a real solution with a config file is required
|
|
|
|
References: FATE#320615
|
|
|
|
|
|
|
|
This is a simple method to allow us to set site defaults for mkfs by
|
|
|
|
adding -include <includefile> to cflags.
|
|
|
|
|
|
|
|
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
|
|
|
|
---
|
|
|
|
utils.h | 4 ++++
|
|
|
|
1 file changed, 4 insertions(+)
|
|
|
|
|
2021-11-12 15:59:10 +01:00
|
|
|
Index: btrfs-progs-v5.15/common/fsfeatures.h
|
2017-04-11 12:43:01 +02:00
|
|
|
===================================================================
|
2021-11-12 15:59:10 +01:00
|
|
|
--- btrfs-progs-v5.15.orig/common/fsfeatures.h
|
|
|
|
+++ btrfs-progs-v5.15/common/fsfeatures.h
|
|
|
|
@@ -19,14 +19,20 @@
|
2017-04-11 12:43:01 +02:00
|
|
|
|
|
|
|
#include "kerncompat.h"
|
2016-11-05 21:23:30 +01:00
|
|
|
|
|
|
|
+#ifndef BTRFS_MKFS_DEFAULT_NODE_SIZE
|
2017-04-11 12:43:01 +02:00
|
|
|
#define BTRFS_MKFS_DEFAULT_NODE_SIZE SZ_16K
|
2016-11-05 21:23:30 +01:00
|
|
|
+#endif
|
|
|
|
+#ifndef BTRFS_MKFS_DEFAULT_FEATURES
|
|
|
|
#define BTRFS_MKFS_DEFAULT_FEATURES \
|
|
|
|
(BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF \
|
2021-11-12 15:59:10 +01:00
|
|
|
| BTRFS_FEATURE_INCOMPAT_NO_HOLES \
|
2016-11-05 21:23:30 +01:00
|
|
|
| BTRFS_FEATURE_INCOMPAT_SKINNY_METADATA)
|
|
|
|
+#endif
|
|
|
|
|
2021-11-12 15:59:10 +01:00
|
|
|
+#ifndef BTRFS_MKFS_DEFAULT_RUNTIME_FEATURES
|
|
|
|
#define BTRFS_MKFS_DEFAULT_RUNTIME_FEATURES \
|
|
|
|
(BTRFS_RUNTIME_FEATURE_FREE_SPACE_TREE)
|
|
|
|
+#endif
|
|
|
|
|
2016-11-05 21:23:30 +01:00
|
|
|
/*
|
2021-05-15 23:16:08 +02:00
|
|
|
* Avoid multi-device features (RAID56), mixed block groups, and zoned mode
|