btrfs: Add zstd support to grub btrfs
- Adds zstd support to the btrfs module. - Adds a test case for btrfs zstd support. - Changes top_srcdir to srcdir in the btrfs module's lzo include following comments from Daniel Kiper about the zstd include. Tested on Ubuntu-18.04 with a btrfs /boot partition with and without zstd compression. A test case was also added to the test suite that fails before the patch, and passes after. Signed-off-by: Nick Terrell <terrelln@fb.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
parent
461f1d8af1
commit
3861286486
5 changed files with 131 additions and 4 deletions
|
@ -629,7 +629,7 @@ for LOGSECSIZE in $(range "$MINLOGSECSIZE" "$MAXLOGSECSIZE" 1); do
|
|||
;;
|
||||
x"btrfs")
|
||||
"mkfs.btrfs" -s $SECSIZE -L "$FSLABEL" "${MOUNTDEVICE}" ;;
|
||||
x"btrfs_zlib" | x"btrfs_lzo")
|
||||
x"btrfs_zlib" | x"btrfs_lzo" | x"btrfs_zstd")
|
||||
"mkfs.btrfs" -s $SECSIZE -L "$FSLABEL" "${MOUNTDEVICE}"
|
||||
MOUNTOPTS="compress=${fs/btrfs_/},"
|
||||
MOUNTFS="btrfs"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue