Repository navigation
Support named FileStore space attributes - #168
Merged
marschall merged 1 commit intoNov 11, 2026
Merged
Conversation
Owner
|
Again, thank you. |
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.
Refs #127.
Support
totalSpace,usableSpaceandunallocatedSpaceinFileStore.getAttribute(String)by delegating to the existing space accessors. These names currently throwUnsupportedOperationExceptioneven though the typed methods already provide the values.The attributes return boxed
longvalues and retain the current live heap estimates. Unknown, differently cased, prefixed and null attribute names remain unsupported. The closed-filesystem check still runs first. File-attribute-view support, capacity calculations and allocation behavior are unchanged.Add regressions for attributes obtained through the public filesystem API, exact delegation to the existing accessors, unsupported names and closed filesystems. The tests avoid comparing separate free-memory samples, which can change between calls.
Validation on Linux with JDK 11.0.32.1:
mvn --batch-mode --no-transfer-progress --show-version clean verifycompletes with 1,993 passing tests, 16 skipped and no failures or errors (2,009 entries, including 2 integration tests). The 16 skipped cases comprise eight explicitly disabled tests, seven tests aborted because the opened directory stream did not satisfy theSecureDirectoryStreamsupport assumption, and one nested-ZIP test excluded by the JDK version condition. Packaging and Javadoc also succeed.Focused command:
mvn --batch-mode --no-transfer-progress --show-version -Dtest=MemoryFileStoreAttributesTest,MemoryFileStoreTest test