1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/libdm
Peter Rajnoha 17c3e42b21 Add dm_device_get_name to get map name or block device name for given devno.
This is accomplished by reading associated sysfs information. For a dm device,
this is /sys/dev/block/major:minor/dm/name (supported in kernel version >= 2.6.29,
for older kernels, the behaviour is the same as for non-dm devices).

For a non-dm device, this is a readlink on /sys/dev/block/major:minor, e.g.
  /sys/dev/block/253:0 --> ../../devices/virtual/block/dm-0.
The last component of the path is a proper kernel name (block device name).

One can request to read only kernel names by setting the 'prefer_kernel_name'
argument if needed.
2012-01-11 12:34:44 +00:00
..
datastruct Use void pointer instead of char for binary key 2011-03-10 12:48:40 +00:00
ioctl Use sysfs to set/get of read-ahead 2012-01-09 12:26:14 +00:00
misc cmirrord now returns log name to kernel in CTR so it can be registered 2011-10-14 14:18:49 +00:00
mm Improve valgrind support when compiled with DEBUG_MEM 2011-10-28 20:37:31 +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_get_name to get map name or block device name for given devno. 2012-01-11 12:34:44 +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_get_name to get map name or block device name for given devno. 2012-01-11 12:34:44 +00:00
libdm-common.h Use sysfs to set/get of read-ahead 2012-01-09 12:26:14 +00:00
libdm-config.c Add dm_config_find_str_allow_empty 2011-12-21 12:47:44 +00:00
libdm-deptree.c Add dm_uuid_prefix/dm_set_uuid_prefix for non-lvm users to override hard-coded 2012-01-10 02:03:31 +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