HomeSoftware Heritage

(MODULES-10592) Fix `zpool status` parsing on Linux

Description

(MODULES-10592) Fix zpool status parsing on Linux

Since #14 was merged, zpool status output shows full paths for
disks. This causes partitions to show up instead of disk devices,
e.g. /dev/sda1 for sda.

This commit removes the partition numbers when parsing zpool status
output by running lsblk on the full path to find out the disk name.

Details

Provenance
Gabriel Nagy <gabriel.nagy@puppet.com>Authored on Mar 26 2020, 3:02 PM
ardumontPushed on Apr 20 2022, 11:24 AM
Parents
R257:284b7c430b3f: Merge pull request #25 from mihaibuzgau/master
Branches
Unknown
Tags
Unknown

Event Timeline