Re: [Patch] btrfs: fix two bugs in module-setup.sh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 30.01.2012 10:58, schrieb Cong Wang:
> First, $host_fs_types is an array.
> Second, use strstr to match btrfs type.
> 
> Cc: Harald Hoyer <harald@xxxxxxxxxx>
> Signed-off-by: WANG Cong <xiyou.wangcong@xxxxxxxxx>
> 
> ---
> diff --git a/modules.d/90btrfs/module-setup.sh b/modules.d/90btrfs/module-setup.sh
> index a141dda..135abc6 100755
> --- a/modules.d/90btrfs/module-setup.sh
> +++ b/modules.d/90btrfs/module-setup.sh
> @@ -13,8 +13,8 @@ check() {
>  
>      [[ $hostonly ]] || [[ $mount_needs ]] && {
>          local _found
> -        for fs in $host_fs_types; do
> -            [[ "$fs" = "|btrfs" ]] && _found="1"
> +        for fs in ${host_fs_types[@]}; do
> +            strstr "$fs" "\|btrfs" && _found="1"
>          done
>          [[ $_found ]] || return 1
>          unset _found
> 

pushed
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux