From af25a6402c3f0224881058f3f4957c34e19e3c74 Mon Sep 17 00:00:00 2001 From: Sebastian Thorarensen Date: Fri, 20 Mar 2015 02:11:11 +0100 Subject: [PATCH] btrfs-progs: btrfs-convert: Allow setting nodesize Allow btrfs-convert to use nodesizes other than 4096. It defaults to max(16384, pagesize), like mkfs. Signed-off-by: Sebastian Thorarensen Signed-off-by: David Sterba --- Documentation/btrfs-convert.txt | 4 +++ btrfs-convert.c | 60 ++++++++++++++++++++++++++++++++++++----- 2 files changed, 57 insertions(+), 7 deletions(-) diff --git a/Documentation/btrfs-convert.txt b/Documentation/btrfs-convert.txt index 6a9e1de..89b2fbd 100644 --- a/Documentation/btrfs-convert.txt +++ b/Documentation/btrfs-convert.txt @@ -23,6 +23,10 @@ Disable data checksum. Ignore xattrs and ACLs. -n:: Disable packing of small files. +-N :: +Set filesystem nodesize, the tree block size in which btrfs stores data. +The default value is 16KB (16384) or the page size, whichever is bigger. +Must be a multiple of the sectorsize, but not larger than 65536. -r:: Roll back to ext2fs. -l