All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anand Jain <Anand.Jain@oracle.com>
To: dsterba@suse.cz, linux-btrfs@vger.kernel.org
Subject: Re: [PATCH] btrfs-progs: make btrfs dev scan multi path aware
Date: Wed, 10 Apr 2013 11:05:12 +0800	[thread overview]
Message-ID: <5164D6E8.9080104@oracle.com> (raw)
In-Reply-To: <20130408152238.GE18193@twin.jikos.cz>


On 04/08/2013 11:22 PM, David Sterba wrote:
> On Thu, Mar 21, 2013 at 07:56:44PM +0800, Anand Jain wrote:
>>   We should avoid using non multi-path (mp) path for mp disks
>>   As of now there is no good way (like api) to check that.
>>   A workaround way is to check if the O_EXCL open is unsuccessful.
>>   This is safe since otherwise the BTRFS_IOC_SCAN_DEV ioctl would
>>   fail if the disk-path can not be opened with the flag O_EXCL set.
>
> Agreed. Alternatively we could try to parse the /sys entries.

  sorry to confuse you on this David. hope the below
  description will clarify..

  this patch actually combined two fixes - one as in the
  subject here, and the other a small fix which is to check if
  the kernel module is loaded.

  the later revised patch separated this into two patch-set
    - v6: access to backup superblock (dt: 04/05/13)
    - [PATCH 0/9] a bunch of miscellaneous bug fixes (dt: 04/05/13)

  in the above v6... as indicated I have dropped the
   [PATCH] btrfs-progs: make btrfs dev scan multi path aware
  since its found that when btrfs is mounted it would open
  the dev with O_EXCL as well, so we can't depend on this
  workaround.

  Further original problem related to the multi-path wasn't
  reproducible with my above two patch-sets applied (in the
  same order) on top integration-20130321 . IMO I lost the
  trigger as I don't think there is any fix related to
  multi path. If there is any good reproducible test-case
  related to multi-path I would dig further.

  The above patch set viz. "v6: access to backup superblock"
  and "[PATCH 0/9] a bunch of miscellaneous bug fixes" are
  important. They bring a lot of stability around the area
  of mkfs, btrfs fi show, btrfs dev scan.

Thanks, Anand


      parent reply	other threads:[~2013-04-10  3:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-21 11:56 [PATCH] btrfs-progs: make btrfs dev scan multi path aware Anand Jain
2013-04-08 15:22 ` David Sterba
2013-04-09 11:12   ` David Sterba
2013-04-10  3:07     ` Anand Jain
2013-04-10  3:05   ` Anand Jain [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=5164D6E8.9080104@oracle.com \
    --to=anand.jain@oracle.com \
    --cc=dsterba@suse.cz \
    --cc=linux-btrfs@vger.kernel.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.