[parted-devel] some issues with ped_disk_commit_to_os()

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


As promised..

I tested with udevsettle and it works perfectly. Olaf, many thanks for the
hint, it definitely made my day :)

Bart


>
>> 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
>
>
> _______________________________________________
> parted-devel mailing list
> parted-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/parted-devel
>


-- 
--- plors




More information about the parted-devel mailing list