Skip to content

Commit 6be1d80

Browse files
wangmingyu84kdave
authored andcommitted
btrfs-progs: mkfs: add break to case BTRFS_COMPRESS_NONE
When compression is null the code always goes through the LZO case, or prints "lzo support not compiled in". This bug was added by commit c6d24a3 ("btrfs-progs: mkfs: add lzo to --compress option"). Pull-request: #967 Signed-off-by: Wang Mingyu <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent ee53b49 commit 6be1d80

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mkfs/rootdir.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,6 +1654,7 @@ int btrfs_mkfs_fill_dir(struct btrfs_trans_handle *trans, const char *source_dir
16541654

16551655
switch (compression) {
16561656
case BTRFS_COMPRESS_NONE:
1657+
break;
16571658
case BTRFS_COMPRESS_LZO:
16581659
#if !COMPRESSION_LZO
16591660
error("lzo support not compiled in");

0 commit comments

Comments
 (0)