diff options
author | Alexander Eremin <a.eremin@nexenta.com> | 2011-08-22 11:37:10 -0400 |
---|---|---|
committer | Alexander Eremin <a.eremin@nexenta.com> | 2011-08-22 11:37:10 -0400 |
commit | e64aafbeeceba238be9ae9daf26ee93aa999bd42 (patch) | |
tree | b6eba9c68db7ef75d86da549954f8ef4f0c8c517 | |
parent | 6b817808e8a80c4e9c93850856065502cc48f7ad (diff) | |
download | illumos-joyent-e64aafbeeceba238be9ae9daf26ee93aa999bd42.tar.gz |
1355 beadm produce a core dump while listing snapshots with -H option
1353 beadm rollback undocumented in man page
Reviewed by: Igor Kozhukhov <igor.kozhukhov@nexenta.com>
Reviewed by: Garrett D'Amore <garrett@nexenta.com>
Reviewed by: Eric Schrock <eric.schrock@delphix.com>
Approved by: Albert Lee <trisk@nexenta.com>
-rw-r--r-- | usr/src/cmd/beadm/beadm.c | 10 | ||||
-rw-r--r-- | usr/src/man/man1m/beadm.1m | 46 |
2 files changed, 47 insertions, 9 deletions
diff --git a/usr/src/cmd/beadm/beadm.c b/usr/src/cmd/beadm/beadm.c index a3471a93a9..7918e00b55 100644 --- a/usr/src/cmd/beadm/beadm.c +++ b/usr/src/cmd/beadm/beadm.c @@ -495,12 +495,12 @@ print_fmt_nodes(const char *be_name, enum be_fmt be_fmt, boolean_t parsable, struct hdr_info *hdr = NULL; be_node_list_t *cur_be; - if (!parsable) { - hdr = hdrs + be_fmt; - init_hdr_cols(be_fmt, hdr); - count_widths(be_fmt, hdr, nodes); + hdr = hdrs + be_fmt; + init_hdr_cols(be_fmt, hdr); + count_widths(be_fmt, hdr, nodes); + + if (!parsable) print_hdr(hdr); - } for (cur_be = nodes; cur_be != NULL; cur_be = cur_be->be_next_node) { char active[3] = "-\0"; diff --git a/usr/src/man/man1m/beadm.1m b/usr/src/man/man1m/beadm.1m index 56046c85ec..da73f7ee0e 100644 --- a/usr/src/man/man1m/beadm.1m +++ b/usr/src/man/man1m/beadm.1m @@ -46,6 +46,16 @@ beadm \- utility for managing zfs boot environments \fBbeadm\fR \fBactivate\fR \fIbeName\fR .fi +.LP +.nf +\fBbeadm\fR \fBrollback\fR \fIbeName\fR \fIsnapshot\fR +.fi + +.LP +.nf +\fBbeadm\fR \fBrollback\fR \fIbeName@snapshot\fR +.fi + .SH DESCRIPTION The \fBbeadm\fR command is the user interface for managing zfs Boot Environments (BEs). This utility is intended to be used by System @@ -123,6 +133,12 @@ Rename an existing, inactive BE. .TP .ie t \(bu .el - +Roll back a BE to an existing snapshot of a BE. +.RE +.RS +4 +.TP +.ie t \(bu +.el - Display information about your snapshots and datasets. .RE .RE @@ -400,6 +416,18 @@ Renames the boot environment named \fIbeName\fR to \fInewBeName\fR. .ne 2 .mk .na +\fBbeadm\fR \fBrollback\fR \fIbeName\fR \fIsnapshot\fR | \fIbeName@snapshot\fR +.ad +.sp .6 +.RS 4n +Roll back the boot environment named \fIbeName\fR to existing snapshot +of the boot environment named \fIbeName@snapshot\fR. +.RE + +.sp +.ne 2 +.mk +.na \fBbeadm\fR \fBactivate\fR \fIbeName\fR .ad .sp .6 @@ -553,7 +581,17 @@ and provide a description for it. .sp .LP -\fBExample 14\fR: List all existing boot environments. +\fBExample 14\fR: Roll back the BE named BE1 to snapshot BE1@now. +.sp +.in +2 +.nf +\fB# beadm rollback BE1 BE1@now\fR +.fi +.in -2 +.sp + +.LP +\fBExample 15\fR: List all existing boot environments. .sp .in +2 @@ -570,7 +608,7 @@ BE5 NR / 7.25G static 2008-09-09 16:53 .sp .LP -\fBExample 14\fR: List all existing boot environmets and list all dataset and +\fBExample 16\fR: List all existing boot environmets and list all dataset and snapshot information about those bootenvironments. .sp @@ -602,7 +640,7 @@ BE5 .in -2 .sp -\fBExample 15\fR: List all dataset and snapshot information about BE5 +\fBExample 17\fR: List all dataset and snapshot information about BE5 .sp .in +2 @@ -623,7 +661,7 @@ BE5 .sp .LP -\fBExample 16\fR: List machine parsable information about all boot +\fBExample 18\fR: List machine parsable information about all boot environments. .sp |