forked from containers/bootc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
blockdev: Use
-b
for lsblk, hard require size property
I noticed that the JSON format inconsistently uses human-readable sizes for some properties, but not others. `size` happens to be one of the ones were it outputs human readable. But I think we will often want to operate on the raw byte value on our own, so let's tell lsblk to just give us raw numbers and do formatting where needed. While we're here, just hard require the `size` property. I don't think any block devices can be missing this. Signed-off-by: Colin Walters <[email protected]>
- Loading branch information
Showing
2 changed files
with
4 additions
and
8 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
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