Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Staging:C
util-linux
util-linux-lsblk-dependencies.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File util-linux-lsblk-dependencies.patch of Package util-linux
From 296dc15c244211e0e2a329286555c5060f337233 Mon Sep 17 00:00:00 2001 From: Karel Zak <kzak@redhat.com> Date: Wed, 1 Apr 2015 12:23:23 +0200 Subject: [PATCH] lsblk: don't ignore dependences for partitioned devies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The code only lists partitions, but ignore another dependencies on whole-disk device: $ lsblk /dev/sdb NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sdb 8:16 0 298.1G 0 disk └─sdb1 8:17 0 298.1G 0 part $ ls /sys/block/sdb/holders/ dm-0 fixed version: $ lsblk /dev/sdb NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sdb 8:16 0 298.1G 0 disk ├─sdb1 8:17 0 298.1G 0 part └─mpatha 253:0 0 298.1G 0 mpath └─mpatha1 253:1 0 298.1G 0 part Signed-off-by: Karel Zak <kzak@redhat.com> --- misc-utils/lsblk.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) Index: util-linux-2.25/misc-utils/lsblk.c =================================================================== --- util-linux-2.25.orig/misc-utils/lsblk.c +++ util-linux-2.25/misc-utils/lsblk.c @@ -1286,9 +1286,10 @@ static int process_blkdev(struct blkdev_ int do_partitions, const char *part_name) { if (do_partitions && cxt->npartitions) - return list_partitions(cxt, parent, part_name); + list_partitions(cxt, parent, part_name); /* partitoins + whole-disk */ + else + fill_table_line(cxt, parent ? parent->scols_line : NULL); /* whole-disk only */ - fill_table_line(cxt, parent ? parent->scols_line : NULL); return list_deps(cxt); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor