aboutsummaryrefslogtreecommitdiffstats
path: root/utils.h
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2015-09-25 18:15:44 +0200
committerDavid Sterba <dsterba@suse.com>2015-10-02 17:54:04 +0200
commitece0e1ea036e6d1c952f304ff74762a12786c37f (patch)
treebba6fb117552bb74b000b84e9de7deb85bde5cc4 /utils.h
parent94789777b9e8f350ba815b07baa5383e99cd1944 (diff)
downloadbtrfs-progs-ece0e1ea036e6d1c952f304ff74762a12786c37f.tar.gz
btrfs-progs-ece0e1ea036e6d1c952f304ff74762a12786c37f.tar.xz
btrfs-progs-ece0e1ea036e6d1c952f304ff74762a12786c37f.zip
btrfs-progs: utils: Check nodesize against features
Check nodesize against features, not only sectorsize. In fact, one of the btrfs-convert and mkfs differs in the nodesize check. This patch also provides the basis for later btrfs-convert fix. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.h b/utils.h
index 93e1de6..192f3d1 100644
--- a/utils.h
+++ b/utils.h
@@ -242,7 +242,7 @@ static inline u64 div_factor(u64 num, int factor)
}
int btrfs_tree_search2_ioctl_supported(int fd);
-int btrfs_check_nodesize(u32 nodesize, u32 sectorsize);
+int btrfs_check_nodesize(u32 nodesize, u32 sectorsize, u64 features);
const char *get_argv0_buf(void);