1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/libdm
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
..
datastruct Use void pointer instead of char for binary key 2011-03-10 12:48:40 +00:00
ioctl Add dm_task_retry_remove fn to use retry logic for device removal. 2011-09-22 17:09:48 +00:00
misc Suport DM_SECURE_DATA_FLAG. 2011-02-04 16:08:11 +00:00
mm Mark unreleased memory pools as internal error 2011-09-01 10:19:01 +00:00
regex Fix some unmatching sign comparation gcc warnings 2011-04-08 14:40:18 +00:00
.exported_symbols Generate liblvm2app and libdevmapper exported symbols from header files. 2010-06-25 18:17:38 +00:00
libdevmapper.h Add dm_device_has_holders fn to to check use of the device by another device. 2011-09-22 17:23:35 +00:00
libdevmapper.pc.in Switch to use Requires.private for devmapper.pc and lvm2app.pc 2010-05-11 08:54:11 +00:00
libdm-common.c Add dm_device_has_holders fn to to check use of the device by another device. 2011-09-22 17:23:35 +00:00
libdm-common.h Move udev_only logic inside stacked node op code. 2011-06-27 21:43:58 +00:00
libdm-config.c Move cascade inside libdm etc. 2011-09-02 01:32:08 +00:00
libdm-deptree.c Replace open_count check with holders/mounted_fs check on lvremove path. 2011-09-22 17:33:50 +00:00
libdm-file.c Add dm_device_has_holders fn to to check use of the device by another device. 2011-09-22 17:23:35 +00:00
libdm-report.c Remove meaningless const type qualifiers on cast type 2011-08-04 14:30:51 +00:00
libdm-string.c Fix memory overwrite 2011-09-14 16:07:07 +00:00
Makefile.in Move the core of the lib/config/config.c functionality into libdevmapper, 2011-08-30 14:55:15 +00:00