Project

General

Profile

Bug #14207

BlueStore compiling error without libaio support

Added by James Liu over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
12/30/2015
Due date:
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

os/bluestore/BlockDevice.cc:413:2: warning: #warning fix discard (aio?) [-Wcpp]
#warning fix discard (aio?)
^
CXX os/bluestore/libos_a-BlueRocksEnv.o
os/bluestore/BlueFS.cc:743:2: warning: #warning smarter _compact_log [-Wcpp]
#warning smarter _compact_log
^
In file included from os/bluestore/BlockDevice.cc:11:0:
os/bluestore/BlockDevice.h:18:8: error: ‘aio_t’ is not a member of ‘FS’
list<FS::aio_t> pending_aios; ///< not yet submitted
^
os/bluestore/BlockDevice.h:18:8: error: ‘aio_t’ is not a member of ‘FS’
os/bluestore/BlockDevice.h:18:17: error: template argument 1 is invalid
list<FS::aio_t> pending_aios; ///< not yet submitted
^
os/bluestore/BlockDevice.h:18:17: error: template argument 2 is invalid
os/bluestore/BlockDevice.h:19:8: error: ‘aio_t’ is not a member of ‘FS’
list<FS::aio_t> running_aios; ///< submitting or submitted
^
os/bluestore/BlockDevice.h:19:8: error: ‘aio_t’ is not a member of ‘FS’
os/bluestore/BlockDevice.h:19:17: error: template argument 1 is invalid
list<FS::aio_t> running_aios; ///< submitting or submitted
^
os/bluestore/BlockDevice.h:19:17: error: template argument 2 is invalid
os/bluestore/BlockDevice.h:58:3: error: ‘aio_queue_t’ in ‘class FS’ does not name a type
FS::aio_queue_t aio_queue;
^
os/bluestore/BlockDevice.cc: In constructor ‘BlockDevice::BlockDevice(BlockDevice::aio_callback_t, void*)’:
os/bluestore/BlockDevice.cc:48:5: error: class ‘BlockDevice’ does not have any field named ‘aio_queue’
aio_queue(g_conf->bdev_aio_max_queue_depth),
^
os/bluestore/BlockDevice.cc: In member function ‘int BlockDevice::_aio_start()’:
os/bluestore/BlockDevice.cc:192:13: error: ‘aio_queue’ was not declared in this scope
int r = aio_queue.init();

Associated revisions

Revision e3d45f0b (diff)
Added by Mykola Golub over 3 years ago

os/bluestore: don't include when building without libaio

Fixes: #14207
Signed-off-by: Mykola Golub <>

History

#1 Updated by Kefu Chai over 3 years ago

  • Status changed from New to Need Review

#2 Updated by Kefu Chai over 3 years ago

  • Status changed from Need Review to Resolved

Also available in: Atom PDF