diff options
author | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2024-02-29 12:52:09 +0100 |
---|---|---|
committer | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2024-03-11 11:07:03 +0100 |
commit | 14a8657940be34a781222b4b715bd09eb80d1057 (patch) | |
tree | 44394767f3e4f5947f585449c3e4545e3555af6d /mdadm.h | |
parent | Manage: implement manage_add_external() (diff) | |
download | mdadm-14a8657940be34a781222b4b715bd09eb80d1057.tar.xz mdadm-14a8657940be34a781222b4b715bd09eb80d1057.zip |
mdadm: introduce sysfs_get_container_devnm()
There at least two places where it is done directly, so replace them
with function. Print message about creating external array, add "/dev/"
prefix to refer directly to devnode.
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -777,6 +777,8 @@ enum sysfs_read_flags { #define SYSFS_MAX_BUF_SIZE 64 +extern void sysfs_get_container_devnm(struct mdinfo *mdi, char *buf); + /* If fd >= 0, get the array it is open on, * else use devnm. */ |