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

[Xen-devel] [PATCH] reworked lomount



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

Attachment: lomount.diff
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.