attach command: allow attaching striped or parity plexes if the -f

option is given.  This will break the data in the plex.
This commit is contained in:
Greg Lehey 2000-06-02 03:52:05 +00:00
parent b334e16698
commit abda606acd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=61159

View File

@ -962,7 +962,8 @@ vinum_attach(int argc, char *argv[], char *argv0[])
fprintf(stderr, "%s can only be attached to a plex\n", objname);
return;
}
if (plex.organization != plex_concat) { /* not a cat plex, */
if ((plex.organization != plex_concat) /* not a cat plex, */
&&(!force)) {
fprintf(stderr, "Can't attach subdisks to a %s plex\n", plex_org(plex.organization));
return;
}