]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
addpart: multiplication on 512 deleted
authorAnton V. Boyarshinov <boyarsh@altlinux.org>
Thu, 5 May 2011 10:31:09 +0000 (14:31 +0400)
committerKarel Zak <kzak@redhat.com>
Thu, 5 May 2011 12:53:35 +0000 (14:53 +0200)
Multiplication on 512 now placed in partx/kpartx.h in '<< 9' form.
Double moutiplication causes an error.

partx/addpart.c

index 52c780c4a6732c22857013210485408372b556ac..84770320f5494deb759f72126005aedf3447e038 100644 (file)
@@ -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);
        }