]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsblk: cleanup udev/blkid properties code
authorKarel Zak <kzak@redhat.com>
Wed, 19 Sep 2018 09:04:35 +0000 (11:04 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 19 Sep 2018 09:40:17 +0000 (11:40 +0200)
commitbaad6dcc6e29503542440584ffdc4b6edd201aba
tree36cfca522418c506641066e7103d833927cbb1d5
parenta1b463d94afdae65ab5bfb192a58f1ceeb13679a
lsblk: cleanup udev/blkid properties code

* split properties to separate struct which is allocated only when
  udev or blkid provides some information

* use separate function for udev and blkid and hide details in generic
  get_device_properties()

* make sure we do not overwrite stuff udev and blkid (but this is only
  theoretic issue as we do not call get_properties_by_blkid() directly
  from code)

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