diff options
author | Karel Zak | 2018-05-15 10:29:22 +0200 |
---|---|---|
committer | Karel Zak | 2018-05-15 10:29:22 +0200 |
commit | b9dd5721fce5d5a5ff740a7e96b09092dbae429f (patch) | |
tree | 364261a3be017d1f7ea50206514bd65ba0bc1976 | |
parent | iscript: s/COLS/COLUMNS/ in start message (diff) | |
download | kernel-qcow2-util-linux-b9dd5721fce5d5a5ff740a7e96b09092dbae429f.tar.gz kernel-qcow2-util-linux-b9dd5721fce5d5a5ff740a7e96b09092dbae429f.tar.xz kernel-qcow2-util-linux-b9dd5721fce5d5a5ff740a7e96b09092dbae429f.zip |
lsblk: don't exclude RAM disks on --all
Reported-by: Milan Broz <gmazyland@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | misc-utils/lsblk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c index 2026da6db..fadef65c4 100644 --- a/misc-utils/lsblk.c +++ b/misc-utils/lsblk.c @@ -1884,7 +1884,7 @@ int main(int argc, char *argv[]) &ncolumns, column_name_to_id) < 0) return EXIT_FAILURE; - if (nexcludes == 0 && nincludes == 0) + if (lsblk->all_devices == 0 && nexcludes == 0 && nincludes == 0) excludes[nexcludes++] = 1; /* default: ignore RAM disks */ if (lsblk->sort_id < 0) |