diff options
author | Mateusz Kusiak <mateusz.kusiak@intel.com> | 2022-07-28 14:20:53 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2022-08-24 17:53:40 +0200 |
commit | 7211116c295ba1f9e1fcbdc2dd2d3762855062e1 (patch) | |
tree | ee4d983805d5150d509da2cbc143714a4e6fc6d2 /mdadm.h | |
parent | mdadm: Don't open md device for CREATE and ASSEMBLE (diff) | |
download | mdadm-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |