Project

General

Profile

Actions

Bug #13177

closed

rhel 5.9 doesn't compile (librados only) due to blkid error

Added by Rohan Mars over 8 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Changes introduced in configure.ac check for blkid functions which don't exist on rhel 5.9. off master the configure executes, but on compilation:

common/blkdev.cc: In function 'int block_device_discard(int, int64_t, int64_t)':
common/blkdev.cc:177:20: error: 'BLKDISCARD' was not declared in this scope
return ioctl(fd, BLKDISCARD, range);
^
common/blkdev.cc:178:1: warning: control reaches end of non-void function [-Wreturn-type]
}

I've created a simple fix which put blkid work into RBD build scope.

https://github.com/ceph/ceph/pull/5954

Actions

Also available in: Atom PDF