Skip to contentSkip to conversation

master - cleanup: convert to 32bit

PATCH Zdenek Kabelac 1 participant 1 message Dec 15, 2012

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=03be45ac0a3b10807374ac0869ac8431bee348b7
Commit:        03be45ac0a3b10807374ac0869ac8431bee348b7
Parent:        0958905b1bc0a59d34a4092377bae7c59f424181
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Thu Dec 13 20:35:38 2012 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Sat Dec 15 14:57:39 2012 +0100

cleanup: convert to 32bit

Chunk sizes fits into 4G range, so keep it in 32bit range.

---
 tools/toollib.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/toollib.c +1 -1
index 1d67e5d..1c455ef 100644
@@ -1618,7 +1618,7 @@ int update_pool_params(struct cmd_context *cmd, unsigned attr,
 				(2 * DEFAULT_THIN_POOL_MAX_METADATA_SIZE *
 				 (SECTOR_SIZE / UINT64_C(64)));
 			log_warn("WARNING: Chunk size is too small for pool, suggested minimum is %s.",
-				 display_size(cmd, 1 << (ffs(estimate_chunk_size) + 1)));
+				 display_size(cmd, 1 << (int)(ffs(estimate_chunk_size) + 1)));
 		}
 
 		/* Round up to extent size */