[lvm-devel] [RFC][PATCH] never scan a device which is using the error target

Mike Snitzer snitzer at redhat.com
Mon Oct 25 01:23:04 UTC 2010


On Sun, Oct 24 2010 at  9:00pm -0400,
Alasdair G Kergon <agk at redhat.com> wrote:

> On Sat, Oct 23, 2010 at 08:55:15PM -0400, Mike Snitzer wrote:
> > any device using the error target shouldn't be scanned.
>  
> I disagree with that:)
> Scanning an error target does not cause the system to lock up so, in general,
> there's no reason not to scan it.
> (Remember that the error target might only be used in 1 out of hundreds
> of table lines and that loop - as you'd expect for the current uses - skips the
> device if *any* target matches.)
> 
> The defining characteristic here is surely that the device is no longer
> meant to be available for mounting - no longer visible, in other words.
> So you may (for now) need a more specific test that's limited
> to snapshot merge.

What about skipping a dm device whose table only has a single error
target?

Anyway... guess I need to back this change out and have another look.

Mike




More information about the lvm-devel mailing list