Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6be1d80

Browse files
wangmingyu84kdave
authored andcommittedMar 11, 2025
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 <wangmy@fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
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)
Please sign in to comment.