diff options
| author | Benjamin Marzinski <bmarzins@redhat.com> | 2024-07-04 17:17:15 +0300 |
|---|---|---|
| committer | Mikulas Patocka <mpatocka@redhat.com> | 2024-07-10 14:10:06 +0300 |
| commit | a21f9edb13b0d8066775cbd5efa7261e41871182 (patch) | |
| tree | a3fa28a4c8452a9d94a6c06ab108dc6684e231d7 /include | |
| parent | 3708c7269593b836b1d684214cd9f5d83e4ed3fd (diff) | |
| download | linux-a21f9edb13b0d8066775cbd5efa7261e41871182.tar.xz | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/device-mapper.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h index 4ba2e73993bd..384649a61bfa 100644 --- a/include/linux/device-mapper.h +++ b/include/linux/device-mapper.h @@ -180,6 +180,11 @@ int dm_get_device(struct dm_target *ti, const char *path, blk_mode_t mode, 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 */ |
