[linux-lvm] [RFC, 2nd try] Let udev play with snapshots

Alasdair G Kergon agk at redhat.com
Thu Oct 26 18:33:57 UTC 2006


On Tue, Oct 24, 2006 at 07:21:58PM +0100, Alasdair G Kergon wrote:
> As discussed on irc, let's try to optimise out the deactivate/activate.

I've checked in an attempt to do this: it turns out that the current
structure of the code allows the simplest approach (skipping the cow
deactivate) to work regardless of whether or not options like --persistent
or --permission are supplied.  The 'snapshot' LV mapped device gets created
with the correct properties for the snapshot, but pointing to the cow and it
gets zeroed.  Then the cow is activated in a new mapped device and the old
one gets reused for the proper snapshot.

Alasdair
-- 
agk at redhat.com




More information about the linux-lvm mailing list