Repository navigation
Add Graphite-owned PBHGetVInfo for every mounted volume - #42
Merged
Merged
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds volume information for the POSIX volume and mounted snapshot-catalog volumes, completing the volume side of the File Manager routing from #41.
HVolumeParam codec
HVolumeParamandHVolumeParamGuestCodeccover the 122-byte record. Offsets come from Retro68's Multiversal headers via the compiler, not from memory: a 4-byte filler followsioVRefNum, soioVolIndexsits at byte 28.ioVNxtCNIDat 58,ioVBkUpat 72,ioVWrCntat 78,ioVFilCntat 82,ioVDirCntat 86), so every field is assembled from bytes.resultswrites back ioResult, ioVRefNum and the volume description from ioVCrDate on, or only ioResult when the call fails.PBHGetVInfo (
FileSystem.volumeInformation)ioVolIndexpicks by position (POSIX volume first, then catalogs in mount order). A negative one picks by name, ignoring case and acceptingVolume:or a full path, then falls back to ioVRefNum. Zero picks by number, where 0 is the default volume, which may be a catalog. An index or name that matches nothing is nsvErr.Volume.spacein 16-bit block counts.ioNamePtr, and asynchronous calls name their completion routine.SnapshotCatalog.statisticssupplies the catalog counts.Policies to review
None of these are checked against Mac OS 9 yet.
Tests
VolumeInformationTestscover the record layout, unaligned fields, write-back fields, and selection by index, name and number, including a catalog as the default volume. All package tests pass.