From 06b0d786758c63004f69948895527ca63c371525 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Mon, 27 Mar 2006 06:38:46 +0000 Subject: 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 --- mdadm.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mdadm.h') 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); -- cgit