Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement cache detach/attach #1474

Closed
wants to merge 15 commits into from
Closed

Implement cache detach/attach #1474

wants to merge 15 commits into from

Conversation

rafalste
Copy link
Contributor

No description provided.

mmichal10
mmichal10 previously approved these changes Jul 12, 2024
modules/cas_cache/layer_cache_management.c Outdated Show resolved Hide resolved
casadm/cas_lib.c Show resolved Hide resolved
modules/cas_cache/layer_cache_management.c Outdated Show resolved Hide resolved
@mmichal10
Copy link
Contributor

@rafalste could you please update OCF to the latest master?

Signed-off-by: Michal Mielewczyk <[email protected]>
Signed-off-by: Rafal Stefanowski <[email protected]>
Signed-off-by: Michal Mielewczyk <[email protected]>
New cache device must have all the same properties then the previously
attached one.
Keeping cache properties in cache priv also allows to add new cores to
detached cache instance.

Signed-off-by: Michal Mielewczyk <[email protected]>
Signed-off-by: Rafal Stefanowski <[email protected]>
Instead of trying to access properties of potenially unavaliable cache device
use properties saved in cache priv

Signed-off-by: Michal Mielewczyk <[email protected]>
An attempt to print a string of zero length was crashing casadm.

Signed-off-by: Michal Mielewczyk <[email protected]>
Signed-off-by: Michal Mielewczyk <[email protected]>
Signed-off-by: Michal Mielewczyk <[email protected]>
Signed-off-by: Rafal Stefanowski <[email protected]>
Cache start and cache attach will share the same code in casadm; the following
refactor is supposed to facilitate reusing the existing code in next commits

Signed-off-by: Michal Mielewczyk <[email protected]>
Signed-off-by: Rafal Stefanowski <[email protected]>
mmichal10
mmichal10 previously approved these changes Aug 6, 2024
Rafal Stefanowski and others added 3 commits August 20, 2024 13:41
Signed-off-by: Rafal Stefanowski <[email protected]>
Signed-off-by: Michal Mielewczyk <[email protected]>
Signed-off-by: Rafal Stefanowski <[email protected]>
Signed-off-by: Michal Mielewczyk <[email protected]>
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