-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Respect write and format flags on block device
Default to writeable and formattable, but override based on bdev flags, or partition NSBOOT permissions
- Loading branch information
Showing
1 changed file
with
33 additions
and
11 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
0e2ec19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible for a partition to be writeable but not readable? Does that need to be taken into account too, or is that irrelevant for picotool?
0e2ec19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically yes, but that doesn't need to be accounted for because if it's not readable then you can't read the filesystem information from it, and therefore picotool will just throw a permissions error whenever you try to use any of the
bdev
commands.0e2ec19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yeah, that's a good point - if the partition is non-readable, and it has a filesystem on it, then there's no way of knowing which blocks need to be written, in order to update the filesystem! 😂