]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsblk: count with terminating character, man page -s entry
authorPeter Rajnoha <prajnoha@redhat.com>
Wed, 4 Apr 2012 11:17:38 +0000 (13:17 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 4 Apr 2012 11:32:25 +0000 (13:32 +0200)
Signed-off-by: Peter Rajnoha <prajnoha@redhat.com>
misc-utils/lsblk.8
misc-utils/lsblk.c

index a5146e499cd93356d2b68575418cdb488211e238..a525d2f5723c1ea0d57dcbcbb799da7ed85a9c94 100644 (file)
@@ -57,6 +57,8 @@ to get a list of all supported columns.
 Use key="value" output format. All potentially unsafe characters are hex-escaped (\\x<code>).
 .IP "\fB\-r, \-\-raw\fP"
 Use the raw output format. All potentially unsafe characters are hex-escaped (\\x<code>).
+.IP "\fB\-s, \-\-inverse\fP"
+Print dependencies in inverse order.
 .IP "\fB\-t, \-\-topology\fP"
 Output info about block device topology.
 This option is equivalent to "-o NAME,ALIGNMENT,MIN-IO,OPT-IO,PHY-SEC,LOG-SEC,ROTA,SCHED,RQ-SIZE".
index ad773c5982f4eff612d65d41254e5b46afa35e9c..76356efbbf6b53c7b62a0a952b6f5e16e18ce268 100644 (file)
@@ -524,7 +524,7 @@ static char *encode_str(const char *str)
        if (!str)
                goto err;
 
-       sz = strlen(str) * 4;
+       sz = strlen(str) * 4 + 1;
        enc = xmalloc(sz);
 
        if (blkid_encode_string(str, enc, sz) != 0)