WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] sfdisk -g support in DomU

To: "Nick Logan" <nick_logan@xxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] sfdisk -g support in DomU
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Wed, 16 Nov 2005 11:21:39 -0000
Delivery-date: Wed, 16 Nov 2005 11:21:38 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcXqlcYkM/zTIRRhQdyx86/KwwAiBQACY/uw
Thread-topic: [Xen-devel] sfdisk -g support in DomU
> Back in January there was a mail thread on this subject ( 
> http://lists.xensource.com/archives/html/xen-devel/2005-01/msg
> 00659.html
> ), however I see that blkfront still does not include ioctl 
> support for disk geometry. So, any application that uses 
> "sfdisk -g" to get the geometry of a partition, or disk, will 
> fail when run in DomU.
> 
> Is this a deliberate omission?

Most people tend to import block devices as partitions rather than whole
disks, so often there isn't a 'whole disk' device to interogate (though
I guess a partition table for it could be faked out if anyone really
cared). Importing partitions rather than whole disks makes resizing of
indidual partitions easier. 

When a whole disk is being imported, I guess it would make sense to
fabricate a geometry based on the size. Patches welcome...

Best,
Ian 

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