Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys/vfs/hammer: Define and use HAMMER_ENCODE() on blockmap formatting
- Add HAMMER_ENCODE() which is a generic version of existing macros HAMMER_ENCODE_{RAW_VOLUME|RAW_BUFFER|FREEMAP}(). - Use HAMMER_ENCODE() in format_blockmap() in userspace when newfs initializes blockmap offsets. This is better in the sense that the macro hides internal of hammer's storage address space format, and gets rid of bitwise operations that make assumption on format.
- Loading branch information