Fix these errors:
caching/superblock.cc:306: error: reference to 'validator' is ambiguous
caching/superblock.cc:271: error: candidates are: namespace validator { }
./block-cache/block_cache.h:22: error: class bcache::validator
caching/superblock.cc:316: error: reference to 'validator' is ambiguous
caching/superblock.cc:271: error: candidates are: namespace validator { }
./block-cache/block_cache.h:22: error: class bcache::validator
Signed-off-by: Mikulas Patocka <***@redhat.com>
---
caching/superblock.cc | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
Index: thin-provisioning-tools/caching/superblock.cc
===================================================================
--- thin-provisioning-tools.orig/caching/superblock.cc 2014-11-05 16:10:19.000000000 +0100
+++ thin-provisioning-tools/caching/superblock.cc 2014-11-05 16:10:23.000000000 +0100
@@ -302,8 +302,9 @@ namespace validator {
superblock
caching::read_superblock(block_manager<>::ptr bm, block_address location)
{
+ using namespace validator;
superblock sb;
- block_manager<>::read_ref r = bm->read_lock(location, validator::mk_v());
+ block_manager<>::read_ref r = bm->read_lock(location, mk_v());
superblock_disk const *sbd = reinterpret_cast<superblock_disk const *>(r.data());
superblock_traits::unpack(*sbd, sb);
@@ -313,7 +314,8 @@ caching::read_superblock(block_manager<>
void
caching::write_superblock(block_manager<>::ptr bm, superblock const &sb, block_address location)
{
- block_manager<>::write_ref w = bm->superblock_zero(location, validator::mk_v());
+ using namespace validator;
+ block_manager<>::write_ref w = bm->superblock_zero(location, mk_v());
superblock_traits::pack(sb, *reinterpret_cast<superblock_disk *>(w.data()));
}