ceph-csi/internal/rbd
Niels de Vos fe0f169875 rbd: write max 1gb per WriteSame() operation
It seems that writing more than 1 GiB per WriteSame() operation causes
an EINVAL (22) "Invalid argument" error. Splitting the writes in blocks
of maximum 1 GiB should prevent that from happening.

Not all volumes are of a size that is the multiple of the stripe-size.
WriteSame() needs to write full blocks of data, so in case there is a
small left-over, it will be filled with WriteAt().

Signed-off-by: Niels de Vos <ndevos@redhat.com>
2021-03-11 10:57:31 +00:00
..
clone.go cleanup: return error type in rbdVolume.checkCloneImage() 2020-12-09 08:35:35 +00:00
controllerserver.go rbd: add support for thick provisioning option 2021-02-19 11:55:40 +00:00
driver.go rbd: update mount packges in import path 2020-12-17 16:04:54 +00:00
encryption.go rbd: move KMS initialization into rbdVol.initKMS() 2021-02-24 13:16:11 +00:00
errors.go rbd: correct the code comment for ErrFlattenInProgress 2020-10-20 08:59:25 +00:00
identityserver.go cleanup: address godot warnings 2020-07-21 08:36:24 +00:00
nodeserver_test.go cleanup: Remove support for Delete and Unmounting v1.1.0 PVC 2020-07-10 16:07:13 +00:00
nodeserver.go rbd: move encryptDevice() to a method of rbdVolume 2021-02-24 13:16:11 +00:00
rbd_attach.go rbd: add "--options notrim" when mapping a thick-provisioned image 2021-02-19 11:55:40 +00:00
rbd_journal.go rbd: store csi.storage.k8s.io/pvc/namespace metadata as Owner 2020-12-09 13:58:48 +00:00
rbd_util_test.go cleanup: Remove support for Delete and Unmounting v1.1.0 PVC 2020-07-10 16:07:13 +00:00
rbd_util.go rbd: write max 1gb per WriteSame() operation 2021-03-11 10:57:31 +00:00
snapshot.go rbd: replace klog with util logger in snapshot.go 2020-08-19 14:38:12 +00:00