summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorMateusz Kusiak <mateusz.kusiak@intel.com>2022-07-28 14:20:53 +0200
committerJes Sorensen <jsorensen@fb.com>2022-08-24 17:53:40 +0200
commit7211116c295ba1f9e1fcbdc2dd2d3762855062e1 (patch)
treeee4d983805d5150d509da2cbc143714a4e6fc6d2 /mdadm.h
parentmdadm: Don't open md device for CREATE and ASSEMBLE (diff)
downloadmdadm-7211116c295ba1f9e1fcbdc2dd2d3762855062e1.tar.xz
mdadm-7211116c295ba1f9e1fcbdc2dd2d3762855062e1.zip
Grow: Split Grow_reshape into helper function
Grow_reshape should be split into helper functions given its size. - Add helper function for preparing reshape on external metadata. - Close cfd file descriptor. Signed-off-by: Mateusz Kusiak <mateusz.kusiak@intel.com> Acked-by: Coly Li <colyli@suse.de> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index 8208b81e..941a5f38 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -1539,6 +1539,7 @@ extern int stat_is_blkdev(char *devname, dev_t *rdev);
extern bool is_dev_alive(char *path);
extern int get_mdp_major(void);
extern int get_maj_min(char *dev, int *major, int *minor);
+extern bool is_bit_set(int *val, unsigned char index);
extern int dev_open(char *dev, int flags);
extern int open_dev(char *devnm);
extern void reopen_mddev(int mdfd);