Open
Conversation
…g metadata
BlockKey stays pure {id, index, size} for Filename/StoreKey/LRU hash.
BlockContext wraps BlockKey + fs_id for cache layer routing (StorageClientPool).
BlockCache interface now takes BlockContext instead of BlockKey.
…s isolation
Add PrefixBlockAccesser decorator that wraps BlockAccesserImpl and
transparently prepends {fs_name}/ prefix to all object keys, enabling
multiple filesystems to share a single S3 bucket with isolated namespaces.
- New header-only PrefixBlockAccesser in prefix_block_accesser.h
- Client (vfs_hub.cc): use NewPrefixBlockAccesser with fs_info_.name
- CacheNode (storage_client_pool.cc): use NewPrefixBlockAccesser with fs_info.fs_name()
- MDS GC (gc.cc): use NewSharePrefixBlockAccesser with fs_info.fs_name()
- BR (br.cc): unchanged, operates on backup metadata not block data
…e layer Replace old 5-field BlockKey(fs_id, ino, id, index, version) with new 3-field BlockKey(id, index, size) + BlockContext(BlockKey + fs_id) across the entire cache layer. Key changes: - Proto: Add BlockContext message wrapping BlockKey + fs_id - CacheStore: Unified interface with BlockContext - Stage directory: Isolated by fs_id subdirectory (inspired by JuiceFS) - New block_key_helper.h: ParseFromFilename / ToPB / FromPB - Client layer: Adapt BlockStore and prefetch/warmup to use BlockContext with proper fs_id propagation Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
No description provided.