All of lore.kernel.org
 help / color / mirror / Atom feed
From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Cong Wang <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [Patch] btrfs: fix two bugs in module-setup.sh
Date: Tue, 07 Feb 2012 12:14:43 +0100	[thread overview]
Message-ID: <4F3107A3.5040303@redhat.com> (raw)
In-Reply-To: <1327917535-31293-1-git-send-email-xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

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-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> Signed-off-by: WANG Cong <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> 
> ---
> 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

      parent reply	other threads:[~2012-02-07 11:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-30  9:58 [Patch] btrfs: fix two bugs in module-setup.sh Cong Wang
     [not found] ` <1327917535-31293-1-git-send-email-xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-02-07 11:14   ` Harald Hoyer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F3107A3.5040303@redhat.com \
    --to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.