Beispiel #1
0
// SetAUID attempts to change the AUID for the pool.
func (pool *Pool) SetAUID(auid uint64) error {
	ret := C.rados_ioctx_pool_set_auid(pool.context, C.uint64_t(auid))
	if err := toRadosError(ret); err != nil {
		err.Message = fmt.Sprintf("Unable to set auid to %d", auid)
		return err
	}
	return nil
}
Beispiel #2
0
func (r *RadosIoCtx) PoolSetAuid(uid uint64) error {
	cerr := C.rados_ioctx_pool_set_auid(*r.ctx, C.uint64_t(uid))
	if cerr < 0 {
		return errors.New("set auid failed")
	}

	return nil
}