mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
rebase: update go-ceph to release v0.13.0
This commit update go-ceph to v0.13.0 and change CEPH_VERSION in build.env to pacific. Signed-off-by: Rakshith R <rar@redhat.com>
This commit is contained in:
3
vendor/github.com/ceph/go-ceph/cephfs/admin/bytecount.go
generated
vendored
3
vendor/github.com/ceph/go-ceph/cephfs/admin/bytecount.go
generated
vendored
@ -1,6 +1,3 @@
|
||||
//go:build !luminous && !mimic
|
||||
// +build !luminous,!mimic
|
||||
|
||||
package admin
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/ceph/go-ceph/cephfs/admin/clone.go
generated
vendored
3
vendor/github.com/ceph/go-ceph/cephfs/admin/clone.go
generated
vendored
@ -1,6 +1,3 @@
|
||||
//go:build !luminous && !mimic
|
||||
// +build !luminous,!mimic
|
||||
|
||||
package admin
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/ceph/go-ceph/cephfs/admin/flags.go
generated
vendored
3
vendor/github.com/ceph/go-ceph/cephfs/admin/flags.go
generated
vendored
@ -1,6 +1,3 @@
|
||||
//go:build !luminous && !mimic
|
||||
// +build !luminous,!mimic
|
||||
|
||||
package admin
|
||||
|
||||
// For APIs that accept extra sets of "boolean" flags we may end up wanting
|
||||
|
3
vendor/github.com/ceph/go-ceph/cephfs/admin/fsadmin.go
generated
vendored
3
vendor/github.com/ceph/go-ceph/cephfs/admin/fsadmin.go
generated
vendored
@ -1,6 +1,3 @@
|
||||
//go:build !luminous && !mimic
|
||||
// +build !luminous,!mimic
|
||||
|
||||
package admin
|
||||
|
||||
import (
|
||||
|
29
vendor/github.com/ceph/go-ceph/cephfs/admin/mgrmodule.go
generated
vendored
29
vendor/github.com/ceph/go-ceph/cephfs/admin/mgrmodule.go
generated
vendored
@ -52,3 +52,32 @@ func (fsa *FSAdmin) EnableMirroringModule(force bool) error {
|
||||
func (fsa *FSAdmin) DisableMirroringModule() error {
|
||||
return fsa.DisableModule(mirroring)
|
||||
}
|
||||
|
||||
type moduleInfo struct {
|
||||
EnabledModules []string `json:"enabled_modules"`
|
||||
//DisabledModules []string `json:"disabled_modules"`
|
||||
// DisabledModules is documented in ceph as a list of string
|
||||
// but that's not what comes back from the server (on pacific).
|
||||
// Since we don't need this today, we're just going to ignore
|
||||
// it, but if we ever want to support this for external consumers
|
||||
// we'll need to figure out the real structure of this.
|
||||
}
|
||||
|
||||
func parseModuleInfo(res response) (*moduleInfo, error) {
|
||||
m := &moduleInfo{}
|
||||
if err := res.NoStatus().Unmarshal(m).End(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return m, nil
|
||||
}
|
||||
|
||||
// listModules returns moduleInfo or error. it is not exported because
|
||||
// this is really not a cephfs specific thing but we needed it
|
||||
// for cephfs tests. maybe lift it somewhere else someday.
|
||||
func (fsa *FSAdmin) listModules() (*moduleInfo, error) {
|
||||
m := map[string]string{
|
||||
"prefix": "mgr module ls",
|
||||
"format": "json",
|
||||
}
|
||||
return parseModuleInfo(commands.MarshalMonCommand(fsa.conn, m))
|
||||
}
|
||||
|
3
vendor/github.com/ceph/go-ceph/cephfs/admin/response.go
generated
vendored
3
vendor/github.com/ceph/go-ceph/cephfs/admin/response.go
generated
vendored
@ -1,6 +1,3 @@
|
||||
//go:build !luminous && !mimic
|
||||
// +build !luminous,!mimic
|
||||
|
||||
package admin
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/ceph/go-ceph/cephfs/admin/subvolume.go
generated
vendored
3
vendor/github.com/ceph/go-ceph/cephfs/admin/subvolume.go
generated
vendored
@ -1,6 +1,3 @@
|
||||
//go:build !luminous && !mimic
|
||||
// +build !luminous,!mimic
|
||||
|
||||
package admin
|
||||
|
||||
// this is the internal type used to create JSON for ceph.
|
||||
|
3
vendor/github.com/ceph/go-ceph/cephfs/admin/subvolumegroup.go
generated
vendored
3
vendor/github.com/ceph/go-ceph/cephfs/admin/subvolumegroup.go
generated
vendored
@ -1,6 +1,3 @@
|
||||
//go:build !luminous && !mimic
|
||||
// +build !luminous,!mimic
|
||||
|
||||
package admin
|
||||
|
||||
// this is the internal type used to create JSON for ceph.
|
||||
|
3
vendor/github.com/ceph/go-ceph/cephfs/admin/timestamp.go
generated
vendored
3
vendor/github.com/ceph/go-ceph/cephfs/admin/timestamp.go
generated
vendored
@ -1,6 +1,3 @@
|
||||
//go:build !luminous && !mimic
|
||||
// +build !luminous,!mimic
|
||||
|
||||
package admin
|
||||
|
||||
import (
|
||||
|
3
vendor/github.com/ceph/go-ceph/cephfs/admin/volume.go
generated
vendored
3
vendor/github.com/ceph/go-ceph/cephfs/admin/volume.go
generated
vendored
@ -1,6 +1,3 @@
|
||||
//go:build !luminous && !mimic
|
||||
// +build !luminous,!mimic
|
||||
|
||||
package admin
|
||||
|
||||
import (
|
||||
|
Reference in New Issue
Block a user