Skip to content

Commit fba6523

Browse files
authored
Reverted sync qtree APIs
1 parent 0a51ea3 commit fba6523

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

storage_drivers/ontap/api/ontap_rest.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ func (c *RestClient) setVolumeSizeByNameAndStyle(ctx context.Context, volumeName
718718
params.Context = ctx
719719
params.HTTPClient = c.httpClient
720720
params.UUID = uuid
721-
params.SetReturnTimeout(returnTimeout)
721+
// params.SetReturnTimeout(returnTimeout)
722722

723723
sizeBytesStr, _ := capacity.ToBytes(newSize)
724724
sizeBytes, err := convert.ToPositiveInt64(sizeBytesStr)
@@ -4740,7 +4740,7 @@ func (c *RestClient) QtreeCreate(
47404740
params := storage.NewQtreeCreateParamsWithTimeout(c.httpClient.Timeout)
47414741
params.SetContext(ctx)
47424742
params.SetHTTPClient(c.httpClient)
4743-
params.SetReturnTimeout(returnTimeout)
4743+
// params.SetReturnTimeout(returnTimeout)
47444744

47454745
qtreeInfo := &models.Qtree{
47464746
Name: convert.ToPtr(name),
@@ -4842,7 +4842,7 @@ func (c *RestClient) QtreeRename(ctx context.Context, path, newPath string) erro
48424842
params.SetHTTPClient(c.httpClient)
48434843
params.SetID(strconv.FormatInt(*qtree.ID, 10))
48444844
params.SetVolumeUUID(*qtree.Volume.UUID)
4845-
params.SetReturnTimeout(returnTimeout)
4845+
// params.SetReturnTimeout(returnTimeout)
48464846

48474847
qtreeInfo := &models.Qtree{
48484848
Name: convert.ToPtr(strings.TrimPrefix(newPath, "/"+*qtree.Volume.Name+"/")),
@@ -4887,7 +4887,7 @@ func (c *RestClient) QtreeDestroyAsync(ctx context.Context, path string, force b
48874887
params.SetHTTPClient(c.httpClient)
48884888
params.SetID(strconv.FormatInt(*qtree.ID, 10))
48894889
params.SetVolumeUUID(*qtree.Volume.UUID)
4890-
params.SetReturnTimeout(returnTimeout)
4890+
// params.SetReturnTimeout(returnTimeout)
48914891

48924892
deleteOK, deleteAccepted, err := c.api.Storage.QtreeDelete(params, c.authInfo)
48934893
if err != nil {
@@ -5302,7 +5302,7 @@ func (c *RestClient) QtreeModifyExportPolicy(ctx context.Context, name, volumeNa
53025302
params.SetHTTPClient(c.httpClient)
53035303
params.SetID(strconv.FormatInt(*qtree.ID, 10))
53045304
params.SetVolumeUUID(*qtree.Volume.UUID)
5305-
params.SetReturnTimeout(returnTimeout)
5305+
// params.SetReturnTimeout(returnTimeout)
53065306

53075307
qtreeInfo := &models.Qtree{
53085308
ExportPolicy: &models.QtreeInlineExportPolicy{
@@ -5367,7 +5367,7 @@ func (c *RestClient) quotaModify(ctx context.Context, volumeName string, quotaEn
53675367
params.SetContext(ctx)
53685368
params.SetHTTPClient(c.httpClient)
53695369
params.SetUUID(*volume.UUID)
5370-
params.SetReturnTimeout(returnTimeout)
5370+
// params.SetReturnTimeout(returnTimeout)
53715371

53725372
volumeInfo := &models.Volume{
53735373
Quota: &models.VolumeInlineQuota{
@@ -5413,7 +5413,7 @@ func (c *RestClient) QuotaSetEntry(ctx context.Context, qtreeName, volumeName, q
54135413
params.SetContext(ctx)
54145414
params.SetHTTPClient(c.httpClient)
54155415
params.SetUUID(*quotaRule.UUID)
5416-
params.SetReturnTimeout(returnTimeout)
5416+
// params.SetReturnTimeout(returnTimeout)
54175417

54185418
// determine the new hard disk limit value
54195419
if diskLimit == "" {
@@ -5450,7 +5450,7 @@ func (c *RestClient) QuotaAddEntry(ctx context.Context, volumeName, qtreeName, q
54505450
params := storage.NewQuotaRuleCreateParamsWithTimeout(c.httpClient.Timeout)
54515451
params.SetContext(ctx)
54525452
params.SetHTTPClient(c.httpClient)
5453-
params.SetReturnTimeout(convert.ToPtr(int64(3)))
5453+
// params.SetReturnTimeout(convert.ToPtr(int64(3)))
54545454

54555455
quotaRuleInfo := &models.QuotaRule{
54565456
Qtree: &models.QuotaRuleInlineQtree{

0 commit comments

Comments
 (0)