mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 22:30: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>
41 lines
1.0 KiB
Go
41 lines
1.0 KiB
Go
//go:build !nautilus
|
|
// +build !nautilus
|
|
|
|
package rados
|
|
|
|
// #cgo LDFLAGS: -lrados
|
|
// #include <rados/librados.h>
|
|
//
|
|
import "C"
|
|
|
|
// Ceph octopus deprecates rados_set_osdmap_full_try() and implements rados_set_pool_full_try()
|
|
// Ceph octopus deprecates rados_unset_osdmap_full_try() and implements rados_unset_pool_full_try()
|
|
|
|
// SetPoolFullTry makes sure to send requests to the cluster despite
|
|
// the cluster or pool being marked full; ops will either succeed(e.g., delete)
|
|
// or return EDQUOT or ENOSPC.
|
|
//
|
|
// Implements:
|
|
//
|
|
// void rados_set_pool_full_try(rados_ioctx_t io);
|
|
func (ioctx *IOContext) SetPoolFullTry() error {
|
|
if err := ioctx.validate(); err != nil {
|
|
return err
|
|
}
|
|
C.rados_set_pool_full_try(ioctx.ioctx)
|
|
return nil
|
|
}
|
|
|
|
// UnsetPoolFullTry unsets the flag set by SetPoolFullTry()
|
|
//
|
|
// Implements:
|
|
//
|
|
// void rados_unset_pool_full_try(rados_ioctx_t io);
|
|
func (ioctx *IOContext) UnsetPoolFullTry() error {
|
|
if err := ioctx.validate(); err != nil {
|
|
return err
|
|
}
|
|
C.rados_unset_pool_full_try(ioctx.ioctx)
|
|
return nil
|
|
}
|