diff options
author | NeilBrown <neilb@suse.de> | 2013-05-21 16:40:23 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-05-22 12:26:35 +1000 |
commit | 8192902ff75725e40e1b3d7d39452fd949f2d705 (patch) | |
tree | b56b50bb82dc34d7e9d63b91716d6ec6966d10d3 /mdadm.c | |
parent | 9ad2a640fe8579659455ef51b1fa40ea532e865f (diff) |
Grow: --backup-file and --data-offset are incompatible.
So report if both are given, and if --backup-file is given,
don't try to update data-offset.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.c')
-rw-r--r-- | mdadm.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1266,6 +1266,11 @@ int main(int argc, char *argv[]) c.require_homehost = 0; } + if (c.backup_file && data_offset != INVALID_SECTORS) { + pr_err("--backup-file and --data-offset are incompatible\n"); + exit(2); + } + if ((mode == MISC && devmode == 'E') || (mode == MONITOR && spare_sharing == 0)) /* Anyone may try this */; |