do not send 0 for snapshot size_bytes

Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
Travis Glenn Hansen 2021-11-02 13:17:45 -06:00
parent acb96d1a76
commit c265e434a5
4 changed files with 7 additions and 7 deletions

View File

@ -670,7 +670,7 @@ class ControllerClientCommonDriver extends CsiBaseDriver {
* The purpose of this field is to give CO guidance on how much space
* is needed to create a volume from this snapshot.
*/
size_bytes: 0,
//size_bytes: 0,
snapshot_id,
source_volume_id: source_volume_id,
//https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/timestamp.proto

View File

@ -853,7 +853,7 @@ class ControllerSynologyDriver extends CsiBaseDriver {
* The purpose of this field is to give CO guidance on how much space
* is needed to create a volume from this snapshot.
*/
size_bytes: 0,
//size_bytes: 0,
snapshot_id: `/lun/${lun.lun_id}/${snapshot.uuid}`, // add shanpshot_uuid //fixme
source_volume_id: source_volume_id,
//https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/timestamp.proto
@ -880,7 +880,7 @@ class ControllerSynologyDriver extends CsiBaseDriver {
* The purpose of this field is to give CO guidance on how much space
* is needed to create a volume from this snapshot.
*/
size_bytes: 0,
//size_bytes: 0,
snapshot_id: `/lun/${lun.lun_id}/${response.body.data.snapshot_uuid}`,
source_volume_id: source_volume_id,
//https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/timestamp.proto

View File

@ -1874,7 +1874,7 @@ class ControllerZfsSshBaseDriver extends CsiBaseDriver {
* In that vein, I think it's best to return 0 here given the
* unknowns of 'cow' implications.
*/
size_bytes: 0,
//size_bytes: 0,
// remove parent dataset details
snapshot_id: row["name"].replace(
@ -2173,7 +2173,7 @@ class ControllerZfsSshBaseDriver extends CsiBaseDriver {
* In that vein, I think it's best to return 0 here given the
* unknowns of 'cow' implications.
*/
size_bytes: 0,
//size_bytes: 0,
// remove parent dataset details
snapshot_id: properties.name.value.replace(

View File

@ -3556,7 +3556,7 @@ class FreeNASApiDriver extends CsiBaseDriver {
* In that vein, I think it's best to return 0 here given the
* unknowns of 'cow' implications.
*/
size_bytes: 0,
//size_bytes: 0,
// remove parent dataset details
snapshot_id: row["name"].replace(
@ -3946,7 +3946,7 @@ class FreeNASApiDriver extends CsiBaseDriver {
* In that vein, I think it's best to return 0 here given the
* unknowns of 'cow' implications.
*/
size_bytes: 0,
//size_bytes: 0,
// remove parent dataset details
snapshot_id: properties.name.value.replace(