1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/lib/metadata
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
..
lv_alloc.h lvcreate parsing for thin provisioning. 2011-09-06 00:26:42 +00:00
lv_manip.c Replace open_count check with holders/mounted_fs check on lvremove path. 2011-09-22 17:33:50 +00:00
lv.c Add suggest parentheses around '&&' 2011-09-14 10:03:15 +00:00
lv.h Add a new 'thin_pool' output field to 'lvs. 2011-09-09 00:54:49 +00:00
merge.c Trim spaces on EOL 2011-09-16 11:53:14 +00:00
metadata-exported.h LVM_WRITE and LVM_READ are 64bit constants 2011-09-14 09:57:35 +00:00
metadata.c Minor change for pv_create api 2011-09-07 08:34:21 +00:00
metadata.h Append z to lv_attr if new blocks will be zeroed. 2011-09-09 01:15:18 +00:00
mirror.c fix compiler warning. 2011-09-19 14:28:23 +00:00
pv_alloc.h Fix all segments memory is allocated from vg private mempool. 2010-03-31 17:23:18 +00:00
pv_manip.c Improve the discard documentation. Also improve discard code in 2011-04-13 18:26:39 +00:00
pv_map.c Allow ALLOC_ANYWHERE to split contiguous areas. 2010-03-25 21:19:26 +00:00
pv_map.h Remove superfluous fn prototypes. 2010-07-09 15:21:10 +00:00
pv.c Terminate pv_attr field correctly. (2.02.86) 2011-09-07 13:42:00 +00:00
pv.h Defer writing PV labels to vg_write. 2011-06-01 19:29:31 +00:00
raid_manip.c When up-converting a RAID1 array, we need to allocate new larger arrays for 2011-09-22 15:33:21 +00:00
replicator_manip.c add thin_manip.c like the other manip files 2011-09-06 19:25:42 +00:00
segtype.c Handle metadata with unknown segment types more gracefully. 2009-10-16 17:41:49 +00:00
segtype.h Move the core of the lib/config/config.c functionality into libdevmapper, 2011-08-30 14:55:15 +00:00
snapshot_manip.c Fix potential null ptr deref in 'origin_from_cow' 2011-07-19 16:23:52 +00:00
thin_manip.c Append z to lv_attr if new blocks will be zeroed. 2011-09-09 01:15:18 +00:00
vg.c Cache and share generated VG structs 2011-08-11 17:24:23 +00:00
vg.h Cache and share generated VG structs 2011-08-11 17:24:23 +00:00