forked from rockstor/rockstor-core
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
smart device name wrapper function rockstor#1206
Takes a device name, ie base device or partition and returns the first match found in lsblk by way of finding the base device. This leaves base devices as is and partition devices translated to their base device which can help to provide better smart command error reporting.
- Loading branch information
Showing
1 changed file
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters