From abda606acd13d95965b138af8fb9f7be3d112a1b Mon Sep 17 00:00:00 2001 From: Greg Lehey Date: Fri, 2 Jun 2000 03:52:05 +0000 Subject: [PATCH] attach command: allow attaching striped or parity plexes if the -f option is given. This will break the data in the plex. --- sbin/vinum/commands.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sbin/vinum/commands.c b/sbin/vinum/commands.c index d3af93f4d0b..b10b97e9f4f 100644 --- a/sbin/vinum/commands.c +++ b/sbin/vinum/commands.c @@ -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; }