Recently I have noticed a new need arise on the parted mailing lists. This is the need for a "wait_for_dev_to_appear" feature.

Would it be prudent to add this functionality to libparted?
If not, then the users (scripts and programs) of parted and libparted will need to duplicate this functionality.

With parted-1.8.8 and earlier, there did not seem to be a need for this feature. After commit_to_os() was called, both the kernel and the device entries would reflect the changes to the partition table. It is possible that this was a side effect of the commit_to_os() function. Perhaps this would be a good candidate location to include the "wait_for_dev_to_appear" check?


Following are the posts that identify the need for "wait_for_dev_to_appear":

How best to wait for partition table kernel reload?
http://lists.gnu.org/archive/html/bug-parted/2010-06/msg00006.html

[PATCH 3/3] tests: update resize-fs to use wait_for_dev_to_appear_
http://lists.alioth.debian.org/pipermail/parted-devel/2010-June/003702.html

Regards,
Curtis Gedak


_______________________________________________
parted-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/parted-devel

Reply via email to