svn commit: r242232 - stable/9/sys/boot/i386/loader
Andriy Gapon
avg at FreeBSD.org
Sun Oct 28 15:51:01 UTC 2012
Author: avg
Date: Sun Oct 28 15:51:00 2012
New Revision: 242232
URL: http://svn.freebsd.org/changeset/base/242232
Log:
MFC r241284: zfs boot: add lszfs command to i386 loader
Modified:
stable/9/sys/boot/i386/loader/main.c
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/boot/ (props changed)
Modified: stable/9/sys/boot/i386/loader/main.c
==============================================================================
--- stable/9/sys/boot/i386/loader/main.c Sun Oct 28 15:48:15 2012 (r242231)
+++ stable/9/sys/boot/i386/loader/main.c Sun Oct 28 15:51:00 2012 (r242232)
@@ -322,6 +322,29 @@ command_heap(int argc, char *argv[])
return(CMD_OK);
}
+#ifdef LOADER_ZFS_SUPPORT
+COMMAND_SET(lszfs, "lszfs", "list child datasets of a zfs dataset",
+ command_lszfs);
+
+static int
+command_lszfs(int argc, char *argv[])
+{
+ int err;
+
+ if (argc != 2) {
+ command_errmsg = "wrong number of arguments";
+ return (CMD_ERROR);
+ }
+
+ err = zfs_list(argv[1]);
+ if (err != 0) {
+ command_errmsg = strerror(err);
+ return (CMD_ERROR);
+ }
+ return (CMD_OK);
+}
+#endif
+
/* ISA bus access functions for PnP. */
static int
isa_inb(int port)
More information about the svn-src-stable-9
mailing list