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

Re: [Xen-devel] [SOLVED] Error looking up phy:sda5



> > As usual, one finds the answer on their own right after asking a devel list.
> > /usr/lib/python2.3/site-packages/XenoUtil.py hardcoded the location 
> > of sfdisk to /sbin/sfdisk, when in fact slackware 9.1 places it at 
> > /usr/sbin/sfdisk. I just removed the /sbin/ bit and let my PATH take 
> > care of finding it.
> 
> Anyone want to knock up a patch that looks in both locations and
> return a more useful error message on failure? ;-)

Maybe check 'sfdisk', '/sbin/sfdisk', then '/usr/sbin/sfdisk'?

> I guess it would probably be cleaner if we just read this out of
> /proc/partitions rather than using sfdisk...

Unfortunately the proc file lists blocks rather than sectors, so you
can't do sector-accurate calculations based on it.

 -- Keir


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel


 


Rackspace

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