From: Peter Rajnoha Date: Wed, 4 Apr 2012 11:17:38 +0000 (+0200) Subject: lsblk: count with terminating character, man page -s entry X-Git-Tag: v2.22-rc1~556 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8265242b22a672d592025ec66365d32d60429557;p=thirdparty%2Futil-linux.git lsblk: count with terminating character, man page -s entry Signed-off-by: Peter Rajnoha --- diff --git a/misc-utils/lsblk.8 b/misc-utils/lsblk.8 index a5146e499c..a525d2f572 100644 --- a/misc-utils/lsblk.8 +++ b/misc-utils/lsblk.8 @@ -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). .IP "\fB\-r, \-\-raw\fP" Use the raw output format. All potentially unsafe characters are hex-escaped (\\x). +.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". diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c index ad773c5982..76356efbbf 100644 --- a/misc-utils/lsblk.c +++ b/misc-utils/lsblk.c @@ -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)