]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsblk: apply --nodeps to partitions too
authorKarel Zak <kzak@redhat.com>
Wed, 17 Oct 2018 12:13:31 +0000 (14:13 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 7 Dec 2018 11:32:58 +0000 (12:32 +0100)
The new implementation differentiates between partitions and another
dependences -- this is regression, we need root devices only.

Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/lsblk.c

index 46f8f3260b93741d8a014407c2fb297e677c9374..d01ff1b3559827dc9ce8cb6507f7bb7d0fc49ea5 100644 (file)
@@ -1250,13 +1250,13 @@ static int process_dependencies(
 
        assert(dev);
 
+       if (lsblk->nodeps)
+               return 0;
+
        /* read all or specified partition */
        if (do_partitions && dev->npartitions)
                process_partitions(tr, dev);
 
-       if (lsblk->nodeps)
-               return 0;
-
        DBG(DEV, ul_debugobj(dev, "%s: reading dependencies", dev->name));
 
        if (!(lsblk->inverse ? dev->nslaves : dev->nholders)) {