Project

General

Profile

Actions

Cleanup #16465

closed

rbd discard ret value truncated

Added by Huan Zhang Zhang almost 8 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
% 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 1 (0 open1 closed)

Copied to rbd - Backport #22913: jewel: rbd discard ret value truncatedResolvedNathan CutlerActions
Actions #1

Updated by Jason Dillaman over 7 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.

Actions #2

Updated by Jason Dillaman almost 7 years ago

  • Project changed from Ceph to rbd
Actions #3

Updated by Nathan Cutler about 6 years ago

  • Status changed from New to Resolved
Actions #4

Updated by Nathan Cutler about 6 years ago

  • Status changed from Resolved to Pending Backport
  • Backport set to jewel
Actions #5

Updated by Nathan Cutler about 6 years ago

Actions #6

Updated by Nathan Cutler about 6 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF