summaryrefslogtreecommitdiffstats
path: root/sbin/vinum
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>2000-06-02 03:52:05 +0000
committergrog <grog@FreeBSD.org>2000-06-02 03:52:05 +0000
commitd4d500418a6960b003737d44c222b262c1e96aa5 (patch)
treeeccb9308d262824f3242a9ec8fa094064c8d3899 /sbin/vinum
parentd0646eb95293061492c8e7cf2ee937c916cb3d98 (diff)
downloadFreeBSD-src-d4d500418a6960b003737d44c222b262c1e96aa5.zip
FreeBSD-src-d4d500418a6960b003737d44c222b262c1e96aa5.tar.gz
attach command: allow attaching striped or parity plexes if the -f
option is given. This will break the data in the plex.
Diffstat (limited to 'sbin/vinum')
-rw-r--r--sbin/vinum/commands.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/vinum/commands.c b/sbin/vinum/commands.c
index d3af93f..b10b97e 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;
}
OpenPOWER on IntegriCloud