diff options
author | NeilBrown <neilb@suse.de> | 2013-07-01 07:10:05 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-07-01 07:10:05 +0200 |
commit | 2eba849621011a5160b4597f82aa4ed0de7d4e64 (patch) | |
tree | bc692036f3889927542d9d0d1b12a8b305e082f9 /mdadm.h | |
parent | New function: sysfs_wait (diff) | |
download | mdadm-2eba849621011a5160b4597f82aa4ed0de7d4e64.tar.xz mdadm-2eba849621011a5160b4597f82aa4ed0de7d4e64.zip |
Manage: check alignment when stopping an array undergoing reshape.
To be able to revert-reshape of raid4/5/6 which is changing
the number of devices, the reshape must has been stopped on a multiple
of the old and new stripe sizes.
The kernel only enforces the new stripe size multiple.
So we enforce the old-stripe-size multiple by careful use of
"sync_max" and monitoring "reshape_position".
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -538,6 +538,9 @@ extern int sysfs_get_fd(struct mdinfo *sra, struct mdinfo *dev, extern int sysfs_fd_get_ll(int fd, unsigned long long *val); extern int sysfs_get_ll(struct mdinfo *sra, struct mdinfo *dev, char *name, unsigned long long *val); +extern int sysfs_fd_get_two(int fd, unsigned long long *v1, unsigned long long *v2); +extern int sysfs_get_two(struct mdinfo *sra, struct mdinfo *dev, + char *name, unsigned long long *v1, unsigned long long *v2); extern int sysfs_fd_get_str(int fd, char *val, int size); extern int sysfs_attribute_available(struct mdinfo *sra, struct mdinfo *dev, char *name); @@ -1277,6 +1280,7 @@ extern char *conf_word(FILE *file, int allow_key); extern void print_quoted(char *str); extern void print_escape(char *str); extern int use_udev(void); +extern unsigned long GCD(unsigned long a, unsigned long b); extern int conf_name_is_free(char *name); extern int conf_verify_devnames(struct mddev_ident *array_list); extern int devname_matches(char *name, char *match); |