dm-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* ANNOUNCE: remove device on close
@ 2013-09-16 19:41 Mikulas Patocka
  2013-09-16 19:45 ` Mike Snitzer
  0 siblings, 1 reply; 3+ messages in thread
From: Mikulas Patocka @ 2013-09-16 19:41 UTC (permalink / raw)
  To: Alasdair G. Kergon, dm-devel, lvm-devel

Hi

I placed the patches for deferred removal at 
http://people.redhat.com/mpatocka/patches/kernel/deferred-remove/

Use the command:
dmsetup remove --deferred <device_name>

If the device is closed, it is deleted as usual. If the device is open, it 
is flagged to be deleted on close. When the last process that keeps the 
device open closes it, the device is deleted.

The state of deferred-remove flag can be queried with dmstup info - there 
is "(DEFERRED REMOVE)" if the device is flagged to be deleted.

The request to delete a device can be cancelled with message:
dmsetup message <device_name> 0 @cancel_deferred_remove

Mikulas

--
lvm-devel mailing list
lvm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/lvm-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-09-16 20:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-16 19:41 ANNOUNCE: remove device on close Mikulas Patocka
2013-09-16 19:45 ` Mike Snitzer
2013-09-16 20:34   ` [PATCH] " Mikulas Patocka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).