[PATCH] partx/addpart.c: multiplication on 512 deleted

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

 



>From 40d362a3efb07ca326b0af05f88c4b4d70242523 Mon Sep 17 00:00:00 2001
From: Anton V. Boyarshinov <boyarsh@xxxxxxxxxxxx>
Date: Tue, 3 May 2011 14:03:33 +0400

Multiplication on 512 now placed in partx/kpartx.h in '<< 9' form.
Double moutiplication causes an error.

---
 partx/addpart.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/partx/addpart.c b/partx/addpart.c
index 52c780c..8477032 100644
--- a/partx/addpart.c
+++ b/partx/addpart.c
@@ -21,8 +21,8 @@ main(int argc, char **argv)
 	}
 
 	if (partx_add_partition(fd, atoi(argv[2]),
-				512 * atoll(argv[3]),
-				512 * atoll(argv[4]))) {
+				atoll(argv[3]),
+				atoll(argv[4]))) {
 		perror("BLKPG");
 		exit(1);
 	}
-- 
1.7.4.1
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux