mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-27 00:22:22 +00:00
8765c39c7e
[BUG] When running some tests, I notice that my debug build of btrfs-convert is throwing out garbage for target fs label: $ ./btrfs-convert ~/test.img btrfs-convert from btrfs-progs v5.17 Source filesystem: Type: ext2 Label: Blocksize: 4096 UUID: 29d159a8-cb46-41d3-8089-3c5c65e4afae Target filesystem: Label: @pcwU <<< Garbage here Blocksize: 4096 Nodesize: 16384 UUID: 682bf5f2-8cb1-4390-b9ac-6883cd87ed39 Checksum: crc32c ... [CAUSE] The fslabel[] array is just not initialized, thus it can contain garbage. [FIX] Initialize fslabel[] array to all zero. Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com> |
||
---|---|---|
.. | ||
common.c | ||
common.h | ||
main.c | ||
Makefile | ||
source-ext2.c | ||
source-ext2.h | ||
source-fs.c | ||
source-fs.h | ||
source-reiserfs.c | ||
source-reiserfs.h |