All of lore.kernel.org
 help / color / mirror / Atom feed
* Creating partitions on domain U
@ 2005-01-18 23:46 Eric Tessler
  2005-01-19  0:56 ` Mark Williamson
  2005-01-19  2:05 ` Jerome Brown
  0 siblings, 2 replies; 10+ messages in thread
From: Eric Tessler @ 2005-01-18 23:46 UTC (permalink / raw)
  To: xen-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 467 bytes --]

Hello,
 
Does a guest (domain U) have the ability to create partitions on a virtual disk drive (/dev/hda1)?   For example, can I use parted/fdisk to create my own partitions on a VBD from within domain U?
 
Also, does the XEN front-end block driver support any IOCTLs?  I looked in the code and it explicitely fails all IOCTLs received from the kernel.
 
Thanks,
 
Eric

		
---------------------------------
Do you Yahoo!?
 Meet the all-new My Yahoo! – Try it today! 

[-- Attachment #2: Type: text/html, Size: 617 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: Creating partitions on domain U
@ 2005-01-19 10:58 Ian Pratt
  2005-01-19 12:36 ` Ian Pratt
  0 siblings, 1 reply; 10+ messages in thread
From: Ian Pratt @ 2005-01-19 10:58 UTC (permalink / raw)
  To: Henning Glawe, xen-devel

> even that doesn't work: maybe they partition the device (after heavily
> complaining about unsupportet ioctls; maybe it's the 
> get-geometry ioctl that
> isn't correctly implemented, because also "sfdisk -g /dev/hda" fails).

Looking at drivers/xen/blkfron/blkfront.c it looks like blkif_ioctl has
been fixed for 2.4 but not for 2.6. I don't see why this isn't in common
code.

Please could you try pulling blkif_ioctl out into the common code
section and deleting the 2.6 specific one.

Thanks,
Ian


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: Creating partitions on domain U
@ 2005-01-19 23:22 Ian Pratt
  2005-01-20  0:32 ` Adam Heath
  0 siblings, 1 reply; 10+ messages in thread
From: Ian Pratt @ 2005-01-19 23:22 UTC (permalink / raw)
  To: Ryan Harper, Ian Pratt; +Cc: xen-devel

For the moment, just comment out the references to blkif_revalidate.

Adam: this explains why resize wasn't working for you under 2.6. 

Ian

> -----Original Message-----
> From: rharper [mailto:rharper@us.ibm.com] On Behalf Of Ryan Harper
> Sent: 19 January 2005 22:50
> To: Ian Pratt
> Cc: xen-devel@lists.sourceforge.net
> Subject: Re: [Xen-devel] Creating partitions on domain U
> 
> * Ian Pratt <Ian.Pratt@cl.cam.ac.uk> [2005-01-19 09:57]:
> > Please can you give the attached completely untested patch a
> > go. If it works, I'll apply it to 2.0-testing. 
> 
> Some compile issues:
> 
> drivers/built-in.o(.text+0x84396): In function `blkif_ioctl':
> : undefined reference to `blkif_revalidate'
> make[3]: *** [.tmp_vmlinux1] Error 1
> make[3]: Leaving directory 
> `/home/rharper/work/xen/testing/20050119/xen-2.0-testing/linux
> -2.6.10-xen0'
> make[2]: *** [build] Error 2
> make[2]: Leaving directory 
> `/home/rharper/work/xen/testing/20050119/xen-2.0-testing'
> make[1]: *** [linux-2.6-xen0-build] Error 2
> make[1]: Leaving directory 
> `/home/rharper/work/xen/testing/20050119/xen-2.0-testing'
> make: *** [linux26] Error 2
> 
> Ryan Harper
> 


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: Creating partitions on domain U
@ 2005-01-20  0:46 Ian Pratt
  0 siblings, 0 replies; 10+ messages in thread
From: Ian Pratt @ 2005-01-20  0:46 UTC (permalink / raw)
  To: Adam Heath; +Cc: Ryan Harper, Ian Pratt, xen-devel

> > For the moment, just comment out the references to blkif_revalidate.
> >
> > Adam: this explains why resize wasn't working for you under 2.6.
> 
> But I never got a compile error.

No, the compile error was with the patch that added support for ioctls
to 2.6, and highlighted the fact that the revalidate routine wasn't even
implemented for 2.6.
 
> How much work do you estimate it would take to fix?  I'm not 
> above kernel
> hacking.

Not a huge deal. It's just a case of taking the code that's in 2.4
blkfront directory (some of which is already n 2.6 but commented out),
and make it compile and work under 2.6.

Some of the fixes are obvious (extra parameter to get_gendisk), but some
of the changes require a little more thought.

Ian


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-01-20  0:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-18 23:46 Creating partitions on domain U Eric Tessler
2005-01-19  0:56 ` Mark Williamson
2005-01-19  2:05 ` Jerome Brown
2005-01-19  9:31   ` Henning Glawe
  -- strict thread matches above, loose matches on Subject: below --
2005-01-19 10:58 Ian Pratt
2005-01-19 12:36 ` Ian Pratt
2005-01-19 22:50   ` Ryan Harper
2005-01-19 23:22 Ian Pratt
2005-01-20  0:32 ` Adam Heath
2005-01-20  0:46 Ian Pratt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.