All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Jan Kara <jack@suse.cz>
Cc: Christoph Hellwig <hch@infradead.org>,
	Jens Axboe <axboe@kernel.dk>,
	linux-block@vger.kernel.org
Subject: Re: Partitions created under RAID devices
Date: Wed, 30 Nov 2022 05:56:08 -0800	[thread overview]
Message-ID: <Y4dg+OTSdLOFFpvX@infradead.org> (raw)
In-Reply-To: <20221130135344.2ul4cyfstfs3znxg@quack3>

On Wed, Nov 30, 2022 at 02:53:44PM +0100, Jan Kara wrote:
> As I've studied history behind partition rescanning I understand it is
> difficult to please everybody :). But creating partitions under assembled
> RAID device looks wrong to me. So I was wondering - couldn't
> disk_scan_partitions() just refuse to operate on the device if there's
> another exclusive opener (it will be a bit painful to do the check but it
> is doable)? That will fix this problem with RAID and should
> not be prone to races with udev or similar problems causing troubles in the
> past. What do people think?

Yes, that seems like a very reasonable thing to do.

      reply	other threads:[~2022-11-30 13:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-30 13:53 Partitions created under RAID devices Jan Kara
2022-11-30 13:56 ` Christoph Hellwig [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=Y4dg+OTSdLOFFpvX@infradead.org \
    --to=hch@infradead.org \
    --cc=axboe@kernel.dk \
    --cc=jack@suse.cz \
    --cc=linux-block@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.