as the topic says, this uses literals when the zfs command is asked
to list stuff in script mode (ie, zfs list -H). this is useful if
you want the sizes of things in raw values.

i have no onnv systems to build this on, so i am unable to demonstrate
this, but i would really like to see this (or something like this)
integrated.

alternatively i could add a new flag to zfs list that toggles this
behaviour.

comments? suggestions?

diff -r fb422f16cbd0 usr/src/cmd/zfs/zfs_main.c
--- a/usr/src/cmd/zfs/zfs_main.c        Tue Sep 30 14:29:46 2008 -0700
+++ b/usr/src/cmd/zfs/zfs_main.c        Wed Oct 01 10:57:27 2008 +1000
@@ -1695,7 +1695,7 @@
                right_justify = B_FALSE;
                if (pl->pl_prop != ZPROP_INVAL) {
                        if (zfs_prop_get(zhp, pl->pl_prop, property,
-                           sizeof (property), NULL, NULL, 0, B_FALSE) != 0)
+                           sizeof (property), NULL, NULL, 0, scripted) != 0)
                                propstr = "-";
                        else
                                propstr = property;
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to