[Git-commits] [grml/grml-hwinfo] 6146f5: Reimplement disk_info() function

Michael Prokop noreply at github.com
Sun Aug 27 14:43:24 CEST 2023


  Branch: refs/heads/master
  Home:   https://github.com/grml/grml-hwinfo
  Commit: 6146f5a7300eb2df5ed3b65aa60f37ffa7c373f8
      https://github.com/grml/grml-hwinfo/commit/6146f5a7300eb2df5ed3b65aa60f37ffa7c373f8
  Author: Darshaka Pathirana <dpat at syn-net.org>
  Date:   2023-08-24 (Thu, 24 Aug 2023)

  Changed paths:
    M grml-hwinfo

  Log Message:
  -----------
  Reimplement disk_info() function

The disklist variable holds a newline separated list of devices that is
used to get various infos about the given disks, such as sfdisk,
smartctl, hdparm, fdisk, parted, sdparm, sg_inq and the output of file.

Unfortunately NVMe disks were not included in the list.

lsblk lists information about all available or specified block devices
excluding the loopback and CD-ROM devices. The checkdisk() function is
is no longer needed.

FTR, the major:minor device numbers are listed in the Kernel
documentation, in case we need to exclude more disk device types:

https://www.kernel.org/doc/Documentation/admin-guide/devices.txt

Closes: grml/grml-hwinfo#6


  Commit: 7397995c4ec9cbb7a5d348f91e4792c30025f558
      https://github.com/grml/grml-hwinfo/commit/7397995c4ec9cbb7a5d348f91e4792c30025f558
  Author: Michael Prokop <mika at grml.org>
  Date:   2023-08-27 (Sun, 27 Aug 2023)

  Changed paths:
    M grml-hwinfo

  Log Message:
  -----------
  Merge remote-tracking branch 'origin/github/pr/7'


Compare: https://github.com/grml/grml-hwinfo/compare/6487a61525e9...7397995c4ec9


More information about the Git-commits mailing list