btrfsprogs/btrfs-progs-mkfs-default-extref.diff
Tomáš Chvátal 7d9af21f71 Accepting request 197508 from home:dsterba:branches:filesystems
SR: urgent fix, breaks installation on factory (ImageMagick package)

- btrfs-progs-mkfs-default-extref.diff: turn on extended refs by
  default, (aka hardlink count limtitation) (bnc#835695)

OBS-URL: https://build.opensuse.org/request/show/197508
OBS-URL: https://build.opensuse.org/package/show/filesystems/btrfsprogs?expand=0&rev=138
2013-09-08 09:30:02 +00:00

14 lines
510 B
Diff

Index: btrfs-progs-v0.20-rc1-335-gf00dd83/mkfs.c
===================================================================
--- btrfs-progs-v0.20-rc1-335-gf00dd83.orig/mkfs.c
+++ btrfs-progs-v0.20-rc1-335-gf00dd83/mkfs.c
@@ -1520,6 +1520,8 @@ raid_groups:
super = root->fs_info->super_copy;
flags = btrfs_super_incompat_flags(super);
+ printf("Turning on extended refs (higher hardlink limit)\n");
+ flags |= BTRFS_FEATURE_INCOMPAT_EXTENDED_IREF;
if (mixed)
flags |= BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS;