diff options
author | Neil Brown <neilb@suse.de> | 2006-03-27 06:38:46 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-03-27 06:38:46 +0000 |
commit | 06b0d786758c63004f69948895527ca63c371525 (patch) | |
tree | 0030aa59bbe307c2f53de7761ca2fd7f736406b1 /mdadm.h | |
parent | 313176636ee8c24cf1464cfec159d41ffcffacb3 (diff) | |
download | mdadm-06b0d786758c63004f69948895527ca63c371525.tar.gz mdadm-06b0d786758c63004f69948895527ca63c371525.tar.xz mdadm-06b0d786758c63004f69948895527ca63c371525.zip |
Allow resize to backup to a file.
To support resizing an array without a spare, mdadm now understands
--backup-file=
which should point to a file for storing a backup of critical data.
This can be given to --grow which will create the file, or
--assemble which will restore from the file if needed.
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -309,16 +309,17 @@ extern int Manage_subdevs(char *devname, int fd, mddev_dev_t devlist, int verbose); extern int Grow_Add_device(char *devname, int fd, char *newdev); extern int Grow_addbitmap(char *devname, int fd, char *file, int chunk, int delay, int write_behind, int force); -extern int Grow_reshape(char *devname, int fd, int quiet, +extern int Grow_reshape(char *devname, int fd, int quiet, char *backup_file, long long size, int level, int layout, int chunksize, int raid_disks); -extern int Grow_restart(struct supertype *st, struct mdinfo *info, int *fdlist, int cnt); +extern int Grow_restart(struct supertype *st, struct mdinfo *info, + int *fdlist, int cnt, char *backup_file); extern int Assemble(struct supertype *st, char *mddev, int mdfd, mddev_ident_t ident, char *conffile, - mddev_dev_t devlist, + mddev_dev_t devlist, char *backup_file, int readonly, int runstop, char *update, int verbose, int force); |