bug-parted
[Top][All Lists]
Advanced

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

ped_partition_new


From: Stephane BRANGER
Subject: ped_partition_new
Date: Mon, 16 Oct 2000 16:07:29 +0200

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<<<<<<<<<<



reply via email to

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