diff options
author | Anand Jain <anand.jain@oracle.com> | 2014-07-15 16:02:10 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-08-22 15:07:01 +0200 |
commit | fcdd44470dd7b09e9a40bde9e1b61b7c70759b89 (patch) | |
tree | 170badf2b15ab2c94fef4fa5e06adb5156e8adbe /utils.c | |
parent | 27d61fbcab38f21a8e5ff986a36a581af94b910f (diff) |
btrfs-progs: define BTRFS_MKFS_SMALL_VOLUME_SIZE for small volume
mkfs cut of size '1024 * 1024 * 1024' to mark dev as small volume so to
force mixed group. Use a define for that.
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -702,7 +702,7 @@ int btrfs_prepare_device(int fd, char *file, int zero_end, u64 *block_count_ret, if (max_block_count) block_count = min(block_count, max_block_count); - if (block_count < 1024 * 1024 * 1024 && !(*mixed)) { + if (block_count < BTRFS_MKFS_SMALL_VOLUME_SIZE && !(*mixed)) { printf("SMALL VOLUME: forcing mixed metadata/data groups\n"); *mixed = 1; } @@ -2287,7 +2287,7 @@ int is_vol_small(char *file) close(fd); return -1; } - if (size < 1024 * 1024 * 1024) { + if (size < BTRFS_MKFS_SMALL_VOLUME_SIZE) { close(fd); return 1; } else { |