This patch started out as fixing a warning (due to system()''s return value not being used). Then I realized if lomount functioned well it could be a replacement for kpartx in domUloader (or whatever the combined pygrub+domUloader story turns out to be), so I gave it a closer look. Changes: - Fixed several overflows, off-by-one, and uninitialized variables. - Added well-defined exit codes. - Proper handling of system()''s return value. - Errors parsing partition table cause it to stop now. - etcetera... Tested on 32 and 64 bit, with valgrind, with physical disks and disk images. Please apply to xen-unstable. Signed-off-by: Charles Coffing <ccoffing@novell.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel