bug-parted
[Top][All Lists]
Advanced

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

Re: ped_partition_new


From: Stephane BRANGER
Subject: Re: ped_partition_new
Date: Mon, 16 Oct 2000 17:21:47 +0200

Ok guys I understood the problem, I just correct :

boot_partition = ped_partition_new (disk, PED_PARTITION_PRIMARY, NULL, 0, 
boot_size_sector);

with :

boot_partition = ped_partition_new (disk, PED_PARTITION_PRIMARY, 
ped_file_system_type_get("ext2"), 0, boot_size_sector);
  


Le lun, 16 oct 2000, vous avez écrit :
> Hi buddies !
> 
> I'm using the parted API.
> 
> In my program first I delete all the partitions on a disc:
> ped_disk_delete_all(disk);
> 
> then I create a new partition:
> ped_partition_new (disk, PED_PARTITION_PRIMARY, NULL, 0, boot_size_sector);
> 
> and I write the result to the disc:
> ped_disk_write(disk);
> 
> First in the API documentation the function is explained with more parameters
> (there's the unsigned char system parameter, but I dunno how to use it), but 
> in
> parted.c it's used with those parameters.
> 
> Then the program delete my partitions, but it refuses to create a new one. 
> And I
> don't get any errors so what the hell did I forget ???
> 
> THANKS ! ^_^
> 
> 
> -- 
> Amicalement,
> Stephane BRANGER
> 
> ******************
> * Linux Engineer *
> ******************
> 
> >>>>>>>>TUX POWERED<<<<<<<<<<
> 
> _______________________________________________
> Bug-parted mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-parted
-- 
Amicalement,
Stephane BRANGER

******************
* Linux Engineer *
******************

>>>>>>>>TUX POWERED<<<<<<<<<<



reply via email to

[Prev in Thread] Current Thread [Next in Thread]