]> sourceware.org Git - lvm2.git/commit
Add dm_device_has_holders fn to to check use of the device by another device.
authorPeter Rajnoha <prajnoha@redhat.com>
Thu, 22 Sep 2011 17:23:35 +0000 (17:23 +0000)
committerPeter Rajnoha <prajnoha@redhat.com>
Thu, 22 Sep 2011 17:23:35 +0000 (17:23 +0000)
commit14254bd0be6b4979c4a2d90d4b12e70af0a61396
tree9c6cbfa0c593ee2c2fe0e4f74cefda2df8f34796
parent07e237d6f449ff2cdb09584cdd80baac0c4a5822
Add dm_device_has_holders fn to to check use of the device by another device.
Add dm_device_has_mounted_fs fn to check mounted filesystem on a device.

This requires sysfs directory to be correctly set via dm_set_sysfs_dir
(/sys by default). If sysfs dir is not used or it's set incorrectly,
dm_device_has_{holders,mounted_fs} will return 0!
WHATS_NEW_DM
libdm/libdevmapper.h
libdm/libdm-common.c
libdm/libdm-file.c
This page took 0.030351 seconds and 5 git commands to generate.