diff options
Diffstat (limited to 'misc-utils')
-rw-r--r-- | misc-utils/lsblk.8 | 2 | ||||
-rw-r--r-- | misc-utils/lsblk.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/misc-utils/lsblk.8 b/misc-utils/lsblk.8 index a5146e499..a525d2f57 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<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". diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c index ad773c598..76356efbb 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) |