-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add waitForDevice call before calling the blkid
This PR addresses the issue of `blkid` being called in the event of device unavailability, as a result `blkid could throw exit status 2 error. Exit status 2 can be a result of an unformatted device or specified token not found. So, with the addition of `waitForDevice` call before calling the `blkid` would ensure the device availability when the `blkid` is called. Also as part of this PR, we are not allowing `fstype` discovery for the raw block volumes and would throw an error if any error other than exit status 2 is identified as a result of the `blkid` call.
- Loading branch information
1 parent
5061d79
commit 9bc9efb
Showing
1 changed file
with
29 additions
and
10 deletions.
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