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

Re: [Xen-devel] Simple script help

> If you really want to us xi_phys_grant directly the  typing just 
> xi_phys_grant should get you the error message: 
> Usage: xi_physdev_grant_new <r/rw> <domain> <device> <start sector> 
> <n_sectors> <partition>
> The first two are fairly obvious; the <device> is the linux device
> number in question (e.g. for partition /dev/hda3 this would be 0x0800) 
> the start_sector is the first sector that partition (see /proc/partitions) 
> and n_sectors the number of them (ditto). Finally partition is the
> partition number (e.g. in the case of /dev/hda3 it would be 3). 

Rather than looking in /proc/partitions you'd be better off doing
an 'sfdisk -d /dev/hda' to find out the start sector and number
of sectors.

/proc/partitions works in KB rather than sectors, so there are
potentially odd/even problems with the start sector.




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