mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
cleanup: remove thick provisioning code
This commit removes the thick provisioning code as thick provisioning is deprecated in cephcsi 3.5.0. fixes: #2795 Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
4ee4fdfebd
commit
28fef9b379
@ -140,23 +140,3 @@ func (cc *ClusterConnection) GetTaskAdmin() (*ra.TaskAdmin, error) {
|
||||
|
||||
return rbdAdmin.Task(), nil
|
||||
}
|
||||
|
||||
// DisableDiscardOnZeroedWriteSame enables the
|
||||
// `rbd_discard_on_zeroed_write_same` option in the cluster connection, so that
|
||||
// writing zero blocks of data are actual writes on the OSDs (doing
|
||||
// allocations) and not discard calls. This makes writes much slower, but
|
||||
// enables the option to do thick-provisioning.
|
||||
func (cc *ClusterConnection) DisableDiscardOnZeroedWriteSame() error {
|
||||
if cc.discardOnZeroedWriteSameDisabled {
|
||||
return nil
|
||||
}
|
||||
|
||||
err := cc.conn.SetConfigOption("rbd_discard_on_zeroed_write_same", "false")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
cc.discardOnZeroedWriteSameDisabled = true
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user