diff options
author | Jes Sorensen <Jes.Sorensen@gmail.com> | 2017-03-29 14:35:41 -0400 |
---|---|---|
committer | Jes Sorensen <Jes.Sorensen@gmail.com> | 2017-03-29 14:35:41 -0400 |
commit | 9cd39f015558dba82c293a4433b481b921ceec87 (patch) | |
tree | 324f4d170f41b88d9941b06c832638a0ba232950 /mdadm.h | |
parent | 6ebf34e6bdd9e952d00ad3c2f12a130bfb68965e (diff) | |
download | mdadm-9cd39f015558dba82c293a4433b481b921ceec87.tar.gz |
util: Introduce md_get_array_info()
Remove most direct ioctl calls for GET_ARRAY_INFO, except for one,
which will be addressed in the next patch.
This is the start of the effort to clean up the use of ioctl calls and
introduce a more structured API, which will use sysfs and fall back to
ioctl for backup.
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1405,6 +1405,7 @@ extern int Restore_metadata(char *dev, char *dir, struct context *c, struct supertype *st, int only); extern int md_get_version(int fd); +int md_get_array_info(int fd, struct mdu_array_info_s *array); extern int get_linux_version(void); extern int mdadm_version(char *version); extern unsigned long long parse_size(char *size); |