diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2018-10-09 22:13:42 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2018-10-18 12:10:02 -0400 |
commit | f349b0a3e1f0d184374936f1b2a49352f8a4b1c8 (patch) | |
tree | 7b76fdee1be7b14b70fea8bdf729ac826158d9bc /include/linux/device-mapper.h | |
parent | 800a7340ab7dd667edf95e74d8e4f23a17e87076 (diff) | |
download | linux-f349b0a3e1f0d184374936f1b2a49352f8a4b1c8.tar.gz linux-f349b0a3e1f0d184374936f1b2a49352f8a4b1c8.tar.bz2 linux-f349b0a3e1f0d184374936f1b2a49352f8a4b1c8.zip |
dm: add dm_table_device_name()
Add a shortcut for dm_device_name(dm_table_get_md(t)).
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'include/linux/device-mapper.h')
-rw-r--r-- | include/linux/device-mapper.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h index 8d937754aa0c..d7bee8669f10 100644 --- a/include/linux/device-mapper.h +++ b/include/linux/device-mapper.h @@ -489,6 +489,7 @@ sector_t dm_table_get_size(struct dm_table *t); unsigned int dm_table_get_num_targets(struct dm_table *t); fmode_t dm_table_get_mode(struct dm_table *t); struct mapped_device *dm_table_get_md(struct dm_table *t); +const char *dm_table_device_name(struct dm_table *t); /* * Trigger an event. |