Repository navigation
Add Graphite-owned PBGetCatInfo on every volume - #43
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 catalog information for items on both the POSIX volume and snapshot-catalog volumes, so BlueBox can ask about an application's own files (types, creators, fork sizes) through the File Manager.
CInfoPBRec
CatalogInfoParamkeeps the 108-byte record as guest bytes, with typed accessors for the shared fields and for both the HFileInfo and DirInfo variants, which overlap from byte 52. Offsets come from Retro68's Multiversal headers via the compiler.resultswrites back everything but the program's ownioFDirIndex, or only ioResult when the call fails.PBGetCatInfo (
FileSystem.getCatalogInfo)FileSystem.catalogInfo(volume:directory:name:index:)routes to the right volume. On a catalog it uses the newSnapshotCatalog.catalogInfo(_:)anditem(at:inFolder:); on POSIX it uses the existing path-basedCatalogInfo.Reviewer notes
Tests
CatalogInformationTestscover the record layout and unaligned fields, write-back fields, files and folders by name, index and folder, missing items, POSIX items, and completion routines. All package tests pass.