[linux-lvm] [PATCH 3/7] thin-provisioning-tools: fix an ambiguous reference on g++-4.4 and older
Mikulas Patocka
mpatocka at redhat.com
Tue Jan 13 19:48:46 UTC 2015
Fix these errors:
thin-provisioning/thin_pool.cc:206: error: reference to 'sector_t' is ambiguous
./thin-provisioning/metadata.h:40: error: candidates are: typedef uint64_t thin_provisioning::sector_t
./block-cache/block_cache.h:20: error: typedef uint64_t bcache::sector_t
thin-provisioning/thin_pool.cc:206: error: reference to 'sector_t' is ambiguous
./thin-provisioning/metadata.h:40: error: candidates are: typedef uint64_t thin_provisioning::sector_t
./block-cache/block_cache.h:20: error: typedef uint64_t bcache::sector_t
thin-provisioning/thin_pool.cc:206: error: 'sector_t' does not name a type
Signed-off-by: Mikulas Patocka <mpatocka at redhat.com>
---
thin-provisioning/thin_pool.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: thin-provisioning-tools/thin-provisioning/thin_pool.cc
===================================================================
--- thin-provisioning-tools.orig/thin-provisioning/thin_pool.cc 2014-11-05 16:14:22.000000000 +0100
+++ thin-provisioning-tools/thin-provisioning/thin_pool.cc 2014-11-05 16:14:45.000000000 +0100
@@ -203,7 +203,7 @@ thin_pool::get_nr_free_data_blocks() con
return md_->data_sm_->get_nr_free();
}
-sector_t
+thin_provisioning::sector_t
thin_pool::get_data_block_size() const
{
return md_->sb_.data_block_size_;
More information about the linux-lvm
mailing list