mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-29 00:10:23 +00:00
d05847ee73
Bumps [github.com/ceph/go-ceph](https://github.com/ceph/go-ceph) from 0.20.0 to 0.21.0. - [Release notes](https://github.com/ceph/go-ceph/releases) - [Changelog](https://github.com/ceph/go-ceph/blob/master/docs/release-process.md) - [Commits](https://github.com/ceph/go-ceph/compare/v0.20.0...v0.21.0) --- updated-dependencies: - dependency-name: github.com/ceph/go-ceph dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
28 lines
669 B
Go
28 lines
669 B
Go
package admin
|
|
|
|
import (
|
|
"github.com/ceph/go-ceph/common/admin/manager"
|
|
)
|
|
|
|
const mirroring = "mirroring"
|
|
|
|
// EnableMirroringModule will enable the mirroring module for cephfs.
|
|
//
|
|
// Similar To:
|
|
//
|
|
// ceph mgr module enable mirroring [--force]
|
|
func (fsa *FSAdmin) EnableMirroringModule(force bool) error {
|
|
mgradmin := manager.NewFromConn(fsa.conn)
|
|
return mgradmin.EnableModule(mirroring, force)
|
|
}
|
|
|
|
// DisableMirroringModule will disable the mirroring module for cephfs.
|
|
//
|
|
// Similar To:
|
|
//
|
|
// ceph mgr module disable mirroring
|
|
func (fsa *FSAdmin) DisableMirroringModule() error {
|
|
mgradmin := manager.NewFromConn(fsa.conn)
|
|
return mgradmin.DisableModule(mirroring)
|
|
}
|