[parted-devel] some issues with ped_disk_commit_to_os()

Bart Hakvoort bart at hakvoort.be
Wed Sep 13 12:39:19 UTC 2006


> On Sun, Sep 10, Bart Hakvoort wrote:
>
>> Whenever i call ped_disk_commit_to_os() (which in turn will call
>> ioctl(int
>> fd, BLKRRPART) somewhere in the process) the devicenodes show up after a
>> small delay. This delay causes the CLItools to throw a 'device not
>> found'
>> error every now and then. I've tried working with sync() and fsync(),
>> but
>> without luck so far.
>
> This is an async event, you have to poll for the device node you have
> just created. udevsettle is the way to go. Its not a parted problem.
>
Hi,

This sounds very good, i just had a look at the source and i think this is
what we need. I'll try it tonight when i get home, but i have a good
feeling about this :)

Thanks!


-- 
--- plors




More information about the parted-devel mailing list