Project

General

Profile

Cleanup #16465

rbd discard ret value truncated

Added by Huan Zhang Zhang almost 3 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
06/24/2016
Due date:
% Done:

0%

Tags:
Backport:
jewel
Reviewed:
Affected Versions:
Pull request ID:

Description

rbd discard use 'int' as return type, but 'len' user passed is 'unit64',
in some case, the ret value will be truncated and return a negative value
which mean discard failed.


Related issues

Copied to rbd - Backport #22913: jewel: rbd discard ret value truncated Resolved

History

#1 Updated by Jason Dillaman over 2 years ago

  • Tracker changed from Bug to Cleanup

Since the librbd1 API cannot be changed, this is just a limitation of read/write/discard until a new, non-backwards compatible API is developed.

#2 Updated by Jason Dillaman about 2 years ago

  • Project changed from Ceph to rbd

#3 Updated by Nathan Cutler over 1 year ago

  • Status changed from New to Resolved

#4 Updated by Nathan Cutler over 1 year ago

  • Status changed from Resolved to Pending Backport
  • Backport set to jewel

#5 Updated by Nathan Cutler over 1 year ago

#6 Updated by Nathan Cutler over 1 year ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF