[PATCH 3/7] thin-provisioning-tools: fix an ambiguous reference on g++-4.4 and older

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@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_;

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/



[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux