-
Notifications
You must be signed in to change notification settings - Fork 1
common: expand the sds.at_create CTL to also cover pmemobj_open() #5
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
common: expand the sds.at_create CTL to also cover pmemobj_open() #5
Conversation
Preview - pool with disabled SDS (MD-on-SSD-like)
Fileslog_create_org.txt |
Preview - pool with enabled SDS (MD-on-PMEM-like)Excuse me for using an SDS-enabled pool on non-PMEM. 😆 Please ignore it. The key bit is how modified PMEMOBJ behaves in case it will open a SDS-enabled pool will
Fileslog_open_sds_enabled_pool_org.txt |
…type" The full solution: 7152ecf Signed-off-by: Jan Michalski <[email protected]>
baa475a
to
52ea4c4
Compare
src/common/ctl_sds.c
Outdated
int arg_in = *(int *)arg; | ||
|
||
if (SDS_at_create != arg_in && arg_in == 0) { | ||
CORE_LOG_HARK("PMEM feature disabled: SDS_at_create=%d", arg_in); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CORE_LOG_HARK("PMEM feature disabled: SDS_at_create=%d", arg_in); | |
CORE_LOG_HARK("PMEM feature disabled: SDS_at_create=0"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
src/libpmemobj/obj.c
Outdated
{ | ||
/* force set SDS feature */ | ||
if (SDS_at_create) { | ||
attr->features.incompat |= POOL_FEAT_SDS; /* on */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we enable SDS for opening if initially disabled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
52ea4c4
to
ac7e950
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@janekmi reviewed 3 of 4 files at r1, 4 of 4 files at r3, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @grom72)
src/common/ctl_sds.c
Outdated
int arg_in = *(int *)arg; | ||
|
||
if (SDS_at_create != arg_in && arg_in == 0) { | ||
CORE_LOG_HARK("PMEM feature disabled: SDS_at_create=%d", arg_in); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
src/libpmemobj/obj.c
Outdated
{ | ||
/* force set SDS feature */ | ||
if (SDS_at_create) { | ||
attr->features.incompat |= POOL_FEAT_SDS; /* on */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
49fa5c4
to
fe9dc2a
Compare
Signed-off-by: Tomasz Gromadzki <[email protected]>
https://daosio.atlassian.net/browse/DAOS-17449 Signed-off-by: Jan Michalski <[email protected]>
fe9dc2a
to
10a7039
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@grom72 reviewed 1 of 4 files at r1, 5 of 7 files at r5, all commit messages.
Reviewable status: 6 of 8 files reviewed, 1 unresolved discussion (waiting on @janekmi)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 6 of 8 files reviewed, all discussions resolved (waiting on @janekmi)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@janekmi reviewed 2 of 7 files at r5, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @janekmi)
https://daosio.atlassian.net/browse/DAOS-17449
This change is