Dirk Mueller
960b0f8574
- Add ability to provide site specific defaults for mkfs (FATE#320615). * Only used for SLES11 defaults. - Added patch mkfs-default-features.patch OBS-URL: https://build.opensuse.org/request/show/437311 OBS-URL: https://build.opensuse.org/package/show/filesystems/btrfsprogs?expand=0&rev=256
31 lines
895 B
Diff
31 lines
895 B
Diff
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(+)
|
|
|
|
--- a/utils.h
|
|
+++ b/utils.h
|
|
@@ -28,10 +28,14 @@
|
|
|
|
#define BTRFS_MKFS_SYSTEM_GROUP_SIZE (4 * 1024 * 1024)
|
|
#define BTRFS_MKFS_SMALL_VOLUME_SIZE (1024 * 1024 * 1024)
|
|
+#ifndef BTRFS_MKFS_DEFAULT_NODE_SIZE
|
|
#define BTRFS_MKFS_DEFAULT_NODE_SIZE 16384
|
|
+#endif
|
|
+#ifndef BTRFS_MKFS_DEFAULT_FEATURES
|
|
#define BTRFS_MKFS_DEFAULT_FEATURES \
|
|
(BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF \
|
|
| BTRFS_FEATURE_INCOMPAT_SKINNY_METADATA)
|
|
+#endif
|
|
|
|
/*
|
|
* Avoid multi-device features (RAID56) and mixed block groups
|