]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Bluestore: Add missing stubs for OSes not Linux 44198/head
authorWillem Jan Withagen <wjw@digiware.nl>
Fri, 3 Dec 2021 10:32:59 +0000 (11:32 +0100)
committerWillem Jan Withagen <wjw@digiware.nl>
Sat, 4 Dec 2021 12:30:53 +0000 (13:30 +0100)
Otherwise the linker wil complain:

'''
usr/local/bin/x86_64-unknown-freebsd14.0-ld: /usr/local/bin/x86_64-unknown-freebsd14.0-ld: /usr/local/bin/x86_64-unknown-freebsd
14.0-ld: ../../lib/libblk.a(KernelDevice.cc.o): in function `KernelDevice::open(std::__1::basic_string<char, std::__1::char_trai
ts<char>, std::__1::allocator<char> > const&)':
/home/jenkins/workspace/ceph-master-compile/src/blk/kernel/KernelDevice.cc:236: undefined reference to `BlkDev::get_optimal_io_s
ize() const'
'''

Fixes: #43691
Fixes: https://tracker.ceph.com/issues/53483
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/common/blkdev.cc

index ea81bf0ae1e9ecbc960f6fe02b488a6ed41522b0..5f340c40ebb1e463f055dcd4f82a4d6ce09b122d 100644 (file)
@@ -859,6 +859,11 @@ int BlkDev::discard(int64_t offset, int64_t len) const
   return -EOPNOTSUPP;
 }
 
+int BlkDev::get_optimal_io_size() const
+{
+  return 0;
+}
+
 bool BlkDev::is_rotational() const
 {
   return false;
@@ -988,6 +993,11 @@ int BlkDev::discard(int64_t offset, int64_t len) const
   return -EOPNOTSUPP;
 }
 
+int BlkDev::get_optimal_io_size() const
+{
+  return 0;
+}
+
 bool BlkDev::is_rotational() const
 {
 #if __FreeBSD_version >= 1200049