diff options
author | NeilBrown <neilb@suse.de> | 2014-05-15 14:23:16 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2014-05-15 14:23:16 +1000 |
commit | 54ded86fbd7a6a14896cd4a26b909759a1153366 (patch) | |
tree | b6c13ec66072a0d8ffbe5b6590eddfbc8ada1ade /mdadm.h | |
parent | 39917e56ccbabe0b53771ea698c1284b14c62fa3 (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.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |