summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-03-27 06:38:46 +0000
committerNeil Brown <neilb@suse.de>2006-03-27 06:38:46 +0000
commit06b0d786758c63004f69948895527ca63c371525 (patch)
tree0030aa59bbe307c2f53de7761ca2fd7f736406b1 /mdadm.h
parent313176636ee8c24cf1464cfec159d41ffcffacb3 (diff)
downloadmdadm-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.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/mdadm.h b/mdadm.h
index c929be9..1752623 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -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);