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 /Assemble.c | |
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 'Assemble.c')
-rw-r--r-- | Assemble.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -31,7 +31,7 @@ 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) @@ -585,7 +585,7 @@ int Assemble(struct supertype *st, char *mddev, int mdfd, fdlist[i] = -1; } if (!err) - err = Grow_restart(st, &info, fdlist, bestcnt); + err = Grow_restart(st, &info, fdlist, bestcnt, backup_file); while (i>0) { i--; if (fdlist[i]>=0) close(fdlist[i]); |