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

shared block support - libopenstorage extensions #2470

Open
wants to merge 9 commits into
base: release-9.9
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions SDK_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Releases

### v0.101.55 - (02/10/2024)

* Added shared block support
### v0.101.54 - (09/23/2024)

* Revert verify-checksum changes
Expand Down
7 changes: 7 additions & 0 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ const (
SpecIoThrottleWrIOPS = "io_throttle_wr_iops"
SpecIoThrottleRdBW = "io_throttle_rd_bw"
SpecIoThrottleWrBW = "io_throttle_wr_bw"
SpecSharedMode = "shared_mode"
)

// OptionKey specifies a set of recognized query params.
Expand Down Expand Up @@ -845,6 +846,12 @@ func NearSyncReplicationStrategySimpleValueOf(s string) (NearSyncReplicationStra
return NearSyncReplicationStrategy(obj), err
}

// SharedModeSimpleValueOf returns the string format of SharedMode
func SharedModeSimpleValueOf(s string) (SharedMode, error) {
obj, err := simpleValueOf("shared_mode", SharedMode_value, s)
return SharedMode(obj), err
}

// SimpleString returns the string format of IoProfile
func (x IoProfile) SimpleString() string {
return simpleString("io_profile", IoProfile_name, int32(x))
Expand Down
Loading