summaryrefslogtreecommitdiff
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-05-15 14:23:16 +1000
committerNeilBrown <neilb@suse.de>2014-05-15 14:23:16 +1000
commit54ded86fbd7a6a14896cd4a26b909759a1153366 (patch)
treeb6c13ec66072a0d8ffbe5b6590eddfbc8ada1ade /mdadm.h
parent39917e56ccbabe0b53771ea698c1284b14c62fa3 (diff)
Grow: store a link to current backup file in /run/mdadm or similar.
Subsequent patch will allow the background part of "mdadm --grow" to be run from systemd. This can require the passing of a backup file name. To do this, store that name as a symlink in /run/mdadm (or MAP_DIR) and look for it when appropriate. It might be useful to also store the name across reboot, but that would be a different patch. We would need to use the uuid to identify it, and store it in stable storage. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/mdadm.h b/mdadm.h
index f6a614e1..a73d42a9 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -585,9 +585,12 @@ extern int reshape_open_backup_file(char *backup,
long blocks,
int *fdlist,
unsigned long long *offsets,
+ char *sysfs_name,
int restart);
extern unsigned long compute_backup_blocks(int nchunk, int ochunk,
unsigned int ndata, unsigned int odata);
+extern char *locate_backup(char *name);
+extern char *make_backup(char *name);
extern int save_stripes(int *source, unsigned long long *offsets,
int raid_disks, int chunk_size, int level, int layout,
@@ -1196,7 +1199,7 @@ extern int restore_backup(struct supertype *st,
struct mdinfo *content,
int working_disks,
int spares,
- char *backup_file,
+ char **backup_filep,
int verbose);
extern int Grow_continue_command(char *devname, int fd,
char *backup_file, int verbose);