|
From: <ow...@us...> - 2008-01-29 15:38:31
|
Revision: 1043
http://ipcop.svn.sourceforge.net/ipcop/?rev=1043&view=rev
Author: owes
Date: 2008-01-29 07:37:14 -0800 (Tue, 29 Jan 2008)
Log Message:
-----------
Fix partioning large disks (for example 160 GB).
Modified Paths:
--------------
ipcop/trunk/src/installer/partition.c
Modified: ipcop/trunk/src/installer/partition.c
===================================================================
--- ipcop/trunk/src/installer/partition.c 2008-01-28 20:52:17 UTC (rev 1042)
+++ ipcop/trunk/src/installer/partition.c 2008-01-29 15:37:14 UTC (rev 1043)
@@ -123,9 +123,9 @@
goto PARTITION_EXIT;
}
- pedsector_start = (PedSector) (1*1024*1024/ ped_dev->sector_size);
- pedsector_boot = (PedSector) (boot_partition*1024*1024/ ped_dev->sector_size);
- pedsector_root = (PedSector) (root_partition*1024*1024/ ped_dev->sector_size);
+ pedsector_start = ((PedSector)1*1024*1024 / ped_dev->sector_size);
+ pedsector_boot = ((PedSector)boot_partition*1024*1024 / ped_dev->sector_size);
+ pedsector_root = ((PedSector)root_partition*1024*1024 / ped_dev->sector_size);
#if defined(__i386__) || defined(__x86_64__)
strcpy(partition_label[0], "/boot");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|