1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-28 05:57:49 +03:00
Peter Rajnoha 125712bea0 Replace open_count check with holders/mounted_fs check on lvremove path.
Before, we used to display "Can't remove open logical volume" which was
generic. There 3 possibilities of how a device could be opened:
  - used by another device
  - having a filesystem on that device which is mounted
  - opened directly by an application

With the help of sysfs info, we can distinguish the first two situations.
The third one will be subject to "remove retry" logic - if it's opened
quickly (e.g. a parallel scan from within a udev rule run), this will
finish quickly and we can remove it once it has finished. If it's a
legitimate application that keeps the device opened, we'll do our best
to remove the device, but we will fail finally after a few retries.
2011-09-22 17:33:50 +00:00
..
2011-09-14 10:03:15 +00:00
2011-09-16 11:53:14 +00:00
2011-09-07 08:34:21 +00:00
2011-09-19 14:28:23 +00:00
2010-07-09 15:21:10 +00:00
2011-06-01 19:29:31 +00:00
2011-08-11 17:24:23 +00:00
2011-08-11 17:24:23 +00:00