diff options
author | grog <grog@FreeBSD.org> | 2000-06-02 03:52:05 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 2000-06-02 03:52:05 +0000 |
commit | d4d500418a6960b003737d44c222b262c1e96aa5 (patch) | |
tree | eccb9308d262824f3242a9ec8fa094064c8d3899 /sbin/vinum/commands.c | |
parent | d0646eb95293061492c8e7cf2ee937c916cb3d98 (diff) | |
download | FreeBSD-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/commands.c')
-rw-r--r-- | sbin/vinum/commands.c | 3 |
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; } |