Skip to content

Comments

Add alternate device_characteristics/sector_size methods which pass file handle#72

Merged
carlsverre merged 1 commit intoorbitinghail:mainfrom
bkoropoff:device-handle
Feb 24, 2026
Merged

Add alternate device_characteristics/sector_size methods which pass file handle#72
carlsverre merged 1 commit intoorbitinghail:mainfrom
bkoropoff:device-handle

Conversation

@bkoropoff
Copy link
Contributor

For some VFS backends the location of the opened file may influence the results. I added new methods keyed off defaulted associated constants to avoid breaking library compatibility. The new methods have default impls that will panic, but you have to opt in to them being called.

@carlsverre
Copy link
Contributor

Honestly I'd rather just break backwards incompatibility. I should have always made those fns pass through the handle. Mind updating?

The location of the opened file may influence the results.
@bkoropoff
Copy link
Contributor Author

Done

@carlsverre
Copy link
Contributor

Thank you!

@carlsverre carlsverre merged commit 0aa13bf into orbitinghail:main Feb 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants