diff mbox series

common/config: Allow environment defined btrfs mkfs options

Message ID 20201022184924.42kt4pqgngfclc6x@fiona (mailing list archive)
State New, archived
Headers show
Series common/config: Allow environment defined btrfs mkfs options | expand

Commit Message

Goldwyn Rodrigues Oct. 22, 2020, 6:49 p.m. UTC
btrfs does not have options of defining mkfs options via the
environment. Use BTRFS_MKFS_OPTIONS environment variable to set
MKFS_OPTIONS for btrfs.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
---
 common/config | 3 +++
 1 file changed, 3 insertions(+)

Comments

Filipe Manana Oct. 23, 2020, 4:04 p.m. UTC | #1
On Thu, Oct 22, 2020 at 7:52 PM Goldwyn Rodrigues <rgoldwyn@suse.de> wrote:
>
> btrfs does not have options of defining mkfs options via the
> environment. Use BTRFS_MKFS_OPTIONS environment variable to set
> MKFS_OPTIONS for btrfs.
>
> Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>

Looks good,

Reviewed-by: Filipe Manana <fdmanana@suse.com>

Since this is btrfs specific, in the future please cc the btrfs
mailing list as well.
Thanks.

> ---
>  common/config | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/common/config b/common/config
> index 285b7d1f..d83dfb28 100644
> --- a/common/config
> +++ b/common/config
> @@ -410,6 +410,9 @@ _mkfs_opts()
>         f2fs)
>                 export MKFS_OPTIONS="$F2FS_MKFS_OPTIONS"
>                 ;;
> +       btrfs)
> +               export MKFS_OPTIONS="$BTRFS_MKFS_OPTIONS"
> +               ;;
>         *)
>                 ;;
>         esac
> --
> 2.26.2
diff mbox series

Patch

diff --git a/common/config b/common/config
index 285b7d1f..d83dfb28 100644
--- a/common/config
+++ b/common/config
@@ -410,6 +410,9 @@  _mkfs_opts()
 	f2fs)
 		export MKFS_OPTIONS="$F2FS_MKFS_OPTIONS"
 		;;
+	btrfs)
+		export MKFS_OPTIONS="$BTRFS_MKFS_OPTIONS"
+		;;
 	*)
 		;;
 	esac