dm: factor out helper function from dm_get_device
Factor out a helper function, dm_devt_from_path(), from dm_get_device() for use in dm targets. Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
This commit is contained in:
committed by
Mikulas Patocka
parent
3708c72695
commit
a21f9edb13
@@ -179,6 +179,11 @@ int dm_get_device(struct dm_target *ti, const char *path, blk_mode_t mode,
|
||||
struct dm_dev **result);
|
||||
void dm_put_device(struct dm_target *ti, struct dm_dev *d);
|
||||
|
||||
/*
|
||||
* Helper function for getting devices
|
||||
*/
|
||||
int dm_devt_from_path(const char *path, dev_t *dev_p);
|
||||
|
||||
/*
|
||||
* Information about a target type
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user