* [Qemu-devel] [PATCH] Move block format drivers to new directory 'bdrv'
@ 2009-04-26 15:19 Avi Kivity
2009-04-26 15:29 ` Christoph Hellwig
2009-04-27 12:08 ` Kevin Wolf
0 siblings, 2 replies; 20+ messages in thread
From: Avi Kivity @ 2009-04-26 15:19 UTC (permalink / raw)
To: Anthony Liguori; +Cc: qemu-devel
Instead of crowding the top-level directory, give block format drivers their
very own subdirectory.
Signed-off-by: Avi Kivity <avi@redhat.com>
---
Makefile | 10 +++++-----
Makefile.target | 4 ++--
block-bochs.c => bdrv/bochs.c | 0
block-cloop.c => bdrv/cloop.c | 0
block-cow.c => bdrv/cow.c | 0
block-dmg.c => bdrv/dmg.c | 0
block-nbd.c => bdrv/nbd.c | 0
block-parallels.c => bdrv/parallels.c | 0
block-qcow.c => bdrv/qcow.c | 0
block-qcow2.c => bdrv/qcow2.c | 0
block-raw-posix.c => bdrv/raw-posix.c | 0
block-raw-win32.c => bdrv/raw-win32.c | 0
block-vmdk.c => bdrv/vmdk.c | 0
block-vpc.c => bdrv/vpc.c | 0
block-vvfat.c => bdrv/vvfat.c | 0
15 files changed, 7 insertions(+), 7 deletions(-)
rename block-bochs.c => bdrv/bochs.c (100%)
rename block-cloop.c => bdrv/cloop.c (100%)
rename block-cow.c => bdrv/cow.c (100%)
rename block-dmg.c => bdrv/dmg.c (100%)
rename block-nbd.c => bdrv/nbd.c (100%)
rename block-parallels.c => bdrv/parallels.c (100%)
rename block-qcow.c => bdrv/qcow.c (100%)
rename block-qcow2.c => bdrv/qcow2.c (100%)
rename block-raw-posix.c => bdrv/raw-posix.c (100%)
rename block-raw-win32.c => bdrv/raw-win32.c (100%)
rename block-vmdk.c => bdrv/vmdk.c (100%)
rename block-vpc.c => bdrv/vpc.c (100%)
rename block-vvfat.c => bdrv/vvfat.c (100%)
diff --git a/Makefile b/Makefile
index 0f40cda..95d8cd0 100644
--- a/Makefile
+++ b/Makefile
@@ -63,18 +63,18 @@ recurse-all: $(SUBDIR_RULES)
# BLOCK_OBJS is code used by both qemu system emulation and qemu-img
BLOCK_OBJS=cutils.o qemu-malloc.o
-BLOCK_OBJS+=block-cow.o block-qcow.o aes.o block-vmdk.o block-cloop.o
-BLOCK_OBJS+=block-dmg.o block-bochs.o block-vpc.o block-vvfat.o
-BLOCK_OBJS+=block-qcow2.o block-parallels.o block-nbd.o
+BLOCK_OBJS+=bdrv/cow.o bdrv/qcow.o aes.o bdrv/vmdk.o bdrv/cloop.o
+BLOCK_OBJS+=bdrv/dmg.o bdrv/bochs.o bdrv/vpc.o bdrv/vvfat.o
+BLOCK_OBJS+=bdrv/qcow2.o bdrv/parallels.o bdrv/nbd.o
BLOCK_OBJS+=nbd.o block.o aio.o
ifdef CONFIG_WIN32
-BLOCK_OBJS += block-raw-win32.o
+BLOCK_OBJS += bdrv/raw-win32.o
else
ifdef CONFIG_AIO
BLOCK_OBJS += posix-aio-compat.o
endif
-BLOCK_OBJS += block-raw-posix.o
+BLOCK_OBJS += bdrv/raw-posix.o
endif
######################################################################
diff --git a/Makefile.target b/Makefile.target
index 82ada5a..fd70c8d 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -507,12 +507,12 @@ ifdef CONFIG_KVM
OBJS+=kvm.o kvm-all.o
endif
ifdef CONFIG_WIN32
-OBJS+=block-raw-win32.o
+OBJS+=bdrv/raw-win32.o
else
ifdef CONFIG_AIO
OBJS+=posix-aio-compat.o
endif
-OBJS+=block-raw-posix.o
+OBJS+=bdrv/raw-posix.o
endif
LIBS+=-lz
diff --git a/block-bochs.c b/bdrv/bochs.c
similarity index 100%
rename from block-bochs.c
rename to bdrv/bochs.c
diff --git a/block-cloop.c b/bdrv/cloop.c
similarity index 100%
rename from block-cloop.c
rename to bdrv/cloop.c
diff --git a/block-cow.c b/bdrv/cow.c
similarity index 100%
rename from block-cow.c
rename to bdrv/cow.c
diff --git a/block-dmg.c b/bdrv/dmg.c
similarity index 100%
rename from block-dmg.c
rename to bdrv/dmg.c
diff --git a/block-nbd.c b/bdrv/nbd.c
similarity index 100%
rename from block-nbd.c
rename to bdrv/nbd.c
diff --git a/block-parallels.c b/bdrv/parallels.c
similarity index 100%
rename from block-parallels.c
rename to bdrv/parallels.c
diff --git a/block-qcow.c b/bdrv/qcow.c
similarity index 100%
rename from block-qcow.c
rename to bdrv/qcow.c
diff --git a/block-qcow2.c b/bdrv/qcow2.c
similarity index 100%
rename from block-qcow2.c
rename to bdrv/qcow2.c
diff --git a/block-raw-posix.c b/bdrv/raw-posix.c
similarity index 100%
rename from block-raw-posix.c
rename to bdrv/raw-posix.c
diff --git a/block-raw-win32.c b/bdrv/raw-win32.c
similarity index 100%
rename from block-raw-win32.c
rename to bdrv/raw-win32.c
diff --git a/block-vmdk.c b/bdrv/vmdk.c
similarity index 100%
rename from block-vmdk.c
rename to bdrv/vmdk.c
diff --git a/block-vpc.c b/bdrv/vpc.c
similarity index 100%
rename from block-vpc.c
rename to bdrv/vpc.c
diff --git a/block-vvfat.c b/bdrv/vvfat.c
similarity index 100%
rename from block-vvfat.c
rename to bdrv/vvfat.c
--
1.6.0.6
^ permalink raw reply related [flat|nested] 20+ messages in thread
* Re: [Qemu-devel] [PATCH] Move block format drivers to new directory 'bdrv'
2009-04-26 15:19 [Qemu-devel] [PATCH] Move block format drivers to new directory 'bdrv' Avi Kivity
@ 2009-04-26 15:29 ` Christoph Hellwig
2009-04-26 15:55 ` Avi Kivity
2009-04-27 12:08 ` Kevin Wolf
1 sibling, 1 reply; 20+ messages in thread
From: Christoph Hellwig @ 2009-04-26 15:29 UTC (permalink / raw)
To: Avi Kivity; +Cc: qemu-devel
On Sun, Apr 26, 2009 at 06:19:37PM +0300, Avi Kivity wrote:
> Instead of crowding the top-level directory, give block format drivers their
> very own subdirectory.
Please also move block.c. Also block/*.c would match the existing
convention, not that I care too much.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Qemu-devel] [PATCH] Move block format drivers to new directory 'bdrv'
2009-04-26 15:29 ` Christoph Hellwig
@ 2009-04-26 15:55 ` Avi Kivity
2009-04-26 16:18 ` Blue Swirl
0 siblings, 1 reply; 20+ messages in thread
From: Avi Kivity @ 2009-04-26 15:55 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: qemu-devel
Christoph Hellwig wrote:
> On Sun, Apr 26, 2009 at 06:19:37PM +0300, Avi Kivity wrote:
>
>> Instead of crowding the top-level directory, give block format drivers their
>> very own subdirectory.
>>
>
> Please also move block.c. Also block/*.c would match the existing
> convention, not that I care too much.
>
That was deliberate - I wanted to keep the block core in the top level
directory, and move the block format drivers away. I'll change it if
there's consensus that block/*.c (including block.c) is preferable.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Qemu-devel] [PATCH] Move block format drivers to new directory 'bdrv'
2009-04-26 15:55 ` Avi Kivity
@ 2009-04-26 16:18 ` Blue Swirl
2009-04-26 16:20 ` Avi Kivity
0 siblings, 1 reply; 20+ messages in thread
From: Blue Swirl @ 2009-04-26 16:18 UTC (permalink / raw)
To: Avi Kivity; +Cc: Christoph Hellwig, qemu-devel
On 4/26/09, Avi Kivity <avi@redhat.com> wrote:
> Christoph Hellwig wrote:
>
> > On Sun, Apr 26, 2009 at 06:19:37PM +0300, Avi Kivity wrote:
> >
> >
> > > Instead of crowding the top-level directory, give block format drivers
> their
> > > very own subdirectory.
> > >
> > >
> >
> > Please also move block.c. Also block/*.c would match the existing
> > convention, not that I care too much.
> >
> >
>
> That was deliberate - I wanted to keep the block core in the top level
> directory, and move the block format drivers away. I'll change it if
> there's consensus that block/*.c (including block.c) is preferable.
Taking one step further, why not introduce directories similar to VirtualBox:
http://www.virtualbox.org/browser/trunk/src/VBox
Or in our style: host/block/, host/net/slirp/, host/usb/,
host/bluetooth/ (trying to match subdirectory names in Linux drivers
directory)?
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Qemu-devel] [PATCH] Move block format drivers to new directory 'bdrv'
2009-04-26 16:18 ` Blue Swirl
@ 2009-04-26 16:20 ` Avi Kivity
2009-04-26 16:40 ` Blue Swirl
2009-04-26 17:41 ` Anthony Liguori
0 siblings, 2 replies; 20+ messages in thread
From: Avi Kivity @ 2009-04-26 16:20 UTC (permalink / raw)
To: Blue Swirl; +Cc: Christoph Hellwig, qemu-devel
Blue Swirl wrote:
> Taking one step further, why not introduce directories similar to VirtualBox:
> http://www.virtualbox.org/browser/trunk/src/VBox
>
>
No objection, but let's go one step at a time.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Qemu-devel] [PATCH] Move block format drivers to new directory 'bdrv'
2009-04-26 16:20 ` Avi Kivity
@ 2009-04-26 16:40 ` Blue Swirl
2009-04-26 17:04 ` Avi Kivity
2009-04-26 17:44 ` Anthony Liguori
2009-04-26 17:41 ` Anthony Liguori
1 sibling, 2 replies; 20+ messages in thread
From: Blue Swirl @ 2009-04-26 16:40 UTC (permalink / raw)
To: Avi Kivity; +Cc: Christoph Hellwig, qemu-devel
On 4/26/09, Avi Kivity <avi@redhat.com> wrote:
> Blue Swirl wrote:
>
> > Taking one step further, why not introduce directories similar to
> VirtualBox:
> > http://www.virtualbox.org/browser/trunk/src/VBox
> >
> >
> >
>
> No objection, but let's go one step at a time.
Yes, but it's good to see the big picture.
So the new 'host' directory would be like:
.
|-- audio
|-- block
|-- bluetooth
|-- crypto
|-- net
| `-- slirp
|-- parport
|-- scsi
|-- serial
|-- usb
`-- video
audio and slirp are current directories. SDL and VNC go to video, aes
and d3des to crypto.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Qemu-devel] [PATCH] Move block format drivers to new directory 'bdrv'
2009-04-26 16:40 ` Blue Swirl
@ 2009-04-26 17:04 ` Avi Kivity
2009-04-26 17:44 ` Anthony Liguori
1 sibling, 0 replies; 20+ messages in thread
From: Avi Kivity @ 2009-04-26 17:04 UTC (permalink / raw)
To: Blue Swirl; +Cc: Christoph Hellwig, qemu-devel
Blue Swirl wrote:
> Yes, but it's good to see the big picture.
>
> So the new 'host' directory would be like:
>
> .
> |-- audio
> |-- block
> |-- bluetooth
> |-- crypto
> |-- net
> | `-- slirp
> |-- parport
> |-- scsi
> |-- serial
> |-- usb
> `-- video
>
> audio and slirp are current directories. SDL and VNC go to video, aes
> and d3des to crypto.
>
I find it too sparse. Most of these directories would hold one or two
files.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Qemu-devel] [PATCH] Move block format drivers to new directory 'bdrv'
2009-04-26 16:40 ` Blue Swirl
2009-04-26 17:04 ` Avi Kivity
@ 2009-04-26 17:44 ` Anthony Liguori
2009-04-26 17:56 ` Christoph Hellwig
1 sibling, 1 reply; 20+ messages in thread
From: Anthony Liguori @ 2009-04-26 17:44 UTC (permalink / raw)
To: Blue Swirl; +Cc: qemu-devel, Avi Kivity, Christoph Hellwig
Blue Swirl wrote:
> On 4/26/09, Avi Kivity <avi@redhat.com> wrote:
>
>> Blue Swirl wrote:
>>
>>
>>> Taking one step further, why not introduce directories similar to
>>>
>> VirtualBox:
>>
>>> http://www.virtualbox.org/browser/trunk/src/VBox
>>>
>>>
>>>
>>>
>> No objection, but let's go one step at a time.
>>
>
> Yes, but it's good to see the big picture.
>
> So the new 'host' directory would be like:
>
> .
> |-- audio
> |-- block
> |-- bluetooth
> |-- crypto
> |-- net
> | `-- slirp
> |-- parport
> |-- scsi
> |-- serial
> |-- usb
> `-- video
>
There's an awful lot of code refactoring needed before such a layout
would make sense. In general, I think until there are at least 3 files
in the form something-foo.c, it doesn't make sense to convert to
something/foo.c
Regards,
Anthony Liguori
> audio and slirp are current directories. SDL and VNC go to video, aes
> and d3des to crypto.
>
>
>
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Qemu-devel] [PATCH] Move block format drivers to new directory 'bdrv'
2009-04-26 17:44 ` Anthony Liguori
@ 2009-04-26 17:56 ` Christoph Hellwig
2009-04-26 18:06 ` Avi Kivity
0 siblings, 1 reply; 20+ messages in thread
From: Christoph Hellwig @ 2009-04-26 17:56 UTC (permalink / raw)
To: Anthony Liguori; +Cc: Blue Swirl, qemu-devel, Avi Kivity, Christoph Hellwig
On Sun, Apr 26, 2009 at 12:44:12PM -0500, Anthony Liguori wrote:
> >|-- audio
> >|-- block
> >|-- bluetooth
> >|-- crypto
> >|-- net
> >| `-- slirp
> >|-- parport
> >|-- scsi
> >|-- serial
> >|-- usb
> >`-- video
> >
>
> There's an awful lot of code refactoring needed before such a layout
> would make sense. In general, I think until there are at least 3 files
> in the form something-foo.c, it doesn't make sense to convert to
> something/foo.c
I agree. Useful subdirectories I can see currently are:
- usb
- net
- bluetooth
- block
- vnc
after looking at the code again I would also include the various scsi
files in the block directoty, they are pretty closely related and will
get even more interwinded with things like SG_IO passthrough for virtio.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Qemu-devel] [PATCH] Move block format drivers to new directory 'bdrv'
2009-04-26 17:56 ` Christoph Hellwig
@ 2009-04-26 18:06 ` Avi Kivity
0 siblings, 0 replies; 20+ messages in thread
From: Avi Kivity @ 2009-04-26 18:06 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Blue Swirl, qemu-devel
Christoph Hellwig wrote:
> after looking at the code again I would also include the various scsi
> files in the block directoty, they are pretty closely related and will
> get even more interwinded with things like SG_IO passthrough for virtio.
>
>
maybe
block (core)
block/formats (format drivers)
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Qemu-devel] [PATCH] Move block format drivers to new directory 'bdrv'
2009-04-26 16:20 ` Avi Kivity
2009-04-26 16:40 ` Blue Swirl
@ 2009-04-26 17:41 ` Anthony Liguori
2009-04-26 18:10 ` Blue Swirl
1 sibling, 1 reply; 20+ messages in thread
From: Anthony Liguori @ 2009-04-26 17:41 UTC (permalink / raw)
To: Avi Kivity; +Cc: Blue Swirl, Christoph Hellwig, qemu-devel
Avi Kivity wrote:
> Blue Swirl wrote:
>> Taking one step further, why not introduce directories similar to
>> VirtualBox:
>> http://www.virtualbox.org/browser/trunk/src/VBox
>>
>>
>
> No objection, but let's go one step at a time.
I was going to suggest exactly the same thing. It would be good for
someone to look at making a more logical layout in hw/.
Regards,
Anthony Liguori
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Qemu-devel] [PATCH] Move block format drivers to new directory 'bdrv'
2009-04-26 17:41 ` Anthony Liguori
@ 2009-04-26 18:10 ` Blue Swirl
2009-04-26 21:26 ` Stefan Weil
2009-04-27 12:14 ` Kevin Wolf
0 siblings, 2 replies; 20+ messages in thread
From: Blue Swirl @ 2009-04-26 18:10 UTC (permalink / raw)
To: Anthony Liguori; +Cc: qemu-devel, Avi Kivity, Christoph Hellwig
On 4/26/09, Anthony Liguori <anthony@codemonkey.ws> wrote:
> Avi Kivity wrote:
>
> > Blue Swirl wrote:
> >
> > > Taking one step further, why not introduce directories similar to
> VirtualBox:
> > > http://www.virtualbox.org/browser/trunk/src/VBox
> > >
> > >
> > >
> >
> > No objection, but let's go one step at a time.
> >
>
> I was going to suggest exactly the same thing. It would be good for
> someone to look at making a more logical layout in hw/.
hw could be arranged the same way, renamed to 'target':
target
|-- audio
|-- block
|-- bluetooth
|-- boards
| |-- alpha
| |-- arm
| |-- cris
| |-- i386
| |-- m68k
| |-- mips
| |-- ppc
| |-- sh4
| |-- sparc
| |-- sparc64
| `-- x86_64
|-- input
|-- irq
|-- isa
|-- mtd
|-- net
|-- pci
|-- scsi
|-- serial
|-- timer
|-- usb
|-- video
`-- xen
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Qemu-devel] [PATCH] Move block format drivers to new directory 'bdrv'
2009-04-26 18:10 ` Blue Swirl
@ 2009-04-26 21:26 ` Stefan Weil
2009-04-27 12:14 ` Kevin Wolf
1 sibling, 0 replies; 20+ messages in thread
From: Stefan Weil @ 2009-04-26 21:26 UTC (permalink / raw)
To: Blue Swirl, QEMU Developers
Blue Swirl schrieb:
> On 4/26/09, Anthony Liguori <anthony@codemonkey.ws> wrote:
>
>> Avi Kivity wrote:
>>
>>
>>> Blue Swirl wrote:
>>>
>>>
>>>> Taking one step further, why not introduce directories similar to
>>>>
>> VirtualBox:
>>
>>>> http://www.virtualbox.org/browser/trunk/src/VBox
>>>>
>>>>
>>>>
>>>>
>>> No objection, but let's go one step at a time.
>>>
>>>
>> I was going to suggest exactly the same thing. It would be good for
>> someone to look at making a more logical layout in hw/.
>>
>
> hw could be arranged the same way, renamed to 'target':
>
> target
> |-- audio
> |-- block
> |-- bluetooth
> |-- boards
> | |-- alpha
> | |-- arm
> | |-- cris
> | |-- i386
> | |-- m68k
> | |-- mips
> | |-- ppc
> | |-- sh4
> | |-- sparc
> | |-- sparc64
> | `-- x86_64
> |-- input
> |-- irq
> |-- isa
> |-- mtd
> |-- net
> |-- pci
> |-- scsi
> |-- serial
> |-- timer
> |-- usb
> |-- video
> `-- xen
>
>
>
... or similar to linux kernel structure?
target
|-- arch
| |-- ...
|-- drivers
| |-- ...
Then it's clearer where the emulation code for a PC board (i386 or x86_64?),
a network card (pci or net?) or others should be placed.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Qemu-devel] [PATCH] Move block format drivers to new directory 'bdrv'
2009-04-26 18:10 ` Blue Swirl
2009-04-26 21:26 ` Stefan Weil
@ 2009-04-27 12:14 ` Kevin Wolf
2009-04-27 13:52 ` Jamie Lokier
1 sibling, 1 reply; 20+ messages in thread
From: Kevin Wolf @ 2009-04-27 12:14 UTC (permalink / raw)
To: Blue Swirl; +Cc: Christoph Hellwig, qemu-devel, Avi Kivity
Blue Swirl schrieb:
> hw could be arranged the same way, renamed to 'target':
>
> target
> |-- audio
> |-- block
> |-- bluetooth
> |-- boards
> | |-- alpha
> | |-- arm
> | |-- cris
> | |-- i386
> | |-- m68k
> | |-- mips
> | |-- ppc
> | |-- sh4
> | |-- sparc
> | |-- sparc64
> | `-- x86_64
> |-- input
> |-- irq
> |-- isa
> |-- mtd
> |-- net
> |-- pci
> |-- scsi
> |-- serial
> |-- timer
> |-- usb
> |-- video
> `-- xen
We should be careful not to put each file into its own directory. A
layout is good if it helps me to find the right file more quickly. If I
have the same problem finding the right directory (or just having to
change the working directory all the time) afterwards, I think it's not
worth the effort.
Kevin
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Qemu-devel] [PATCH] Move block format drivers to new directory 'bdrv'
2009-04-27 12:14 ` Kevin Wolf
@ 2009-04-27 13:52 ` Jamie Lokier
2009-04-27 14:37 ` M. Warner Losh
0 siblings, 1 reply; 20+ messages in thread
From: Jamie Lokier @ 2009-04-27 13:52 UTC (permalink / raw)
To: Kevin Wolf; +Cc: Blue Swirl, Avi Kivity, Christoph Hellwig, qemu-devel
Kevin Wolf wrote:
> We should be careful not to put each file into its own directory. A
> layout is good if it helps me to find the right file more quickly. If I
> have the same problem finding the right directory (or just having to
> change the working directory all the time) afterwards, I think it's not
> worth the effort.
The way Linux dealt with this is long ago there were only a few
directories in drivers/ and a few top-level directories. Block
devices went in drivers/block/, most other devices in drivers/char,
and there were only a few top-level directories.
That went on for many years. Then as the number of drivers and kernel
subsystems grew too big, they added more and more specialised
directories. Now we have a lot of directories under drivers/, and a
few more at the top level.
With GIT handling renames, adding more directories in future as needed
and moving things into them might be quite straightforward, I'm not
sure.
-- Jamie
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Qemu-devel] [PATCH] Move block format drivers to new directory 'bdrv'
2009-04-27 13:52 ` Jamie Lokier
@ 2009-04-27 14:37 ` M. Warner Losh
0 siblings, 0 replies; 20+ messages in thread
From: M. Warner Losh @ 2009-04-27 14:37 UTC (permalink / raw)
To: jamie; +Cc: kwolf, blauwirbel, qemu-devel, avi, hch
In message: <20090427135200.GA4885@shareable.org>
Jamie Lokier <jamie@shareable.org> writes:
: With GIT handling renames, adding more directories in future as needed
: and moving things into them might be quite straightforward, I'm not
: sure.
Yes. It does. Any of the more modern (post cvs) VCS do this.
Warner
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Qemu-devel] [PATCH] Move block format drivers to new directory 'bdrv'
2009-04-26 15:19 [Qemu-devel] [PATCH] Move block format drivers to new directory 'bdrv' Avi Kivity
2009-04-26 15:29 ` Christoph Hellwig
@ 2009-04-27 12:08 ` Kevin Wolf
2009-04-27 12:10 ` Avi Kivity
2009-05-02 10:34 ` Stuart Brady
1 sibling, 2 replies; 20+ messages in thread
From: Kevin Wolf @ 2009-04-27 12:08 UTC (permalink / raw)
To: Avi Kivity; +Cc: qemu-devel
Avi Kivity schrieb:
> Instead of crowding the top-level directory, give block format drivers their
> very own subdirectory.
>
> Signed-off-by: Avi Kivity <avi@redhat.com>
I like this idea. In fact, I was going to suggest something like this
myself. And a good next step would be to split up (too) large source
files, e.g. into qcow2-snapshot.c, qcow2-refcount.c and so on.
Kevin
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Qemu-devel] [PATCH] Move block format drivers to new directory 'bdrv'
2009-04-27 12:08 ` Kevin Wolf
@ 2009-04-27 12:10 ` Avi Kivity
2009-04-27 12:17 ` Kevin Wolf
2009-05-02 10:34 ` Stuart Brady
1 sibling, 1 reply; 20+ messages in thread
From: Avi Kivity @ 2009-04-27 12:10 UTC (permalink / raw)
To: Kevin Wolf; +Cc: qemu-devel
Kevin Wolf wrote:
> Avi Kivity schrieb:
>> Instead of crowding the top-level directory, give block format
>> drivers their
>> very own subdirectory.
>>
>> Signed-off-by: Avi Kivity <avi@redhat.com>
>
> I like this idea. In fact, I was going to suggest something like this
> myself. And a good next step would be to split up (too) large source
> files, e.g. into qcow2-snapshot.c, qcow2-refcount.c and so on.
qcow2/snapshot.c qcow2/refcount.c ...
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Qemu-devel] [PATCH] Move block format drivers to new directory 'bdrv'
2009-04-27 12:10 ` Avi Kivity
@ 2009-04-27 12:17 ` Kevin Wolf
0 siblings, 0 replies; 20+ messages in thread
From: Kevin Wolf @ 2009-04-27 12:17 UTC (permalink / raw)
To: Avi Kivity; +Cc: qemu-devel
Avi Kivity schrieb:
> Kevin Wolf wrote:
>> Avi Kivity schrieb:
>>> Instead of crowding the top-level directory, give block format
>>> drivers their
>>> very own subdirectory.
>>>
>>> Signed-off-by: Avi Kivity <avi@redhat.com>
>>
>> I like this idea. In fact, I was going to suggest something like this
>> myself. And a good next step would be to split up (too) large source
>> files, e.g. into qcow2-snapshot.c, qcow2-refcount.c and so on.
>
> qcow2/snapshot.c qcow2/refcount.c ...
I'm not sure about that one. A less crowded top level directory is a
good thing, but building a directory labyrinth is not, IMHO.
Kevin
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Qemu-devel] [PATCH] Move block format drivers to new directory 'bdrv'
2009-04-27 12:08 ` Kevin Wolf
2009-04-27 12:10 ` Avi Kivity
@ 2009-05-02 10:34 ` Stuart Brady
1 sibling, 0 replies; 20+ messages in thread
From: Stuart Brady @ 2009-05-02 10:34 UTC (permalink / raw)
To: qemu-devel
On Mon, Apr 27, 2009 at 02:08:28PM +0200, Kevin Wolf wrote:
> Avi Kivity schrieb:
> > Instead of crowding the top-level directory, give block format drivers
> > their very own subdirectory.
>
> I like this idea.
Well, if we're agreed that this is a good idea, is there anything
stopping it from happening? :)
--
Stuart Brady
^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2009-05-02 10:34 UTC | newest]
Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-26 15:19 [Qemu-devel] [PATCH] Move block format drivers to new directory 'bdrv' Avi Kivity
2009-04-26 15:29 ` Christoph Hellwig
2009-04-26 15:55 ` Avi Kivity
2009-04-26 16:18 ` Blue Swirl
2009-04-26 16:20 ` Avi Kivity
2009-04-26 16:40 ` Blue Swirl
2009-04-26 17:04 ` Avi Kivity
2009-04-26 17:44 ` Anthony Liguori
2009-04-26 17:56 ` Christoph Hellwig
2009-04-26 18:06 ` Avi Kivity
2009-04-26 17:41 ` Anthony Liguori
2009-04-26 18:10 ` Blue Swirl
2009-04-26 21:26 ` Stefan Weil
2009-04-27 12:14 ` Kevin Wolf
2009-04-27 13:52 ` Jamie Lokier
2009-04-27 14:37 ` M. Warner Losh
2009-04-27 12:08 ` Kevin Wolf
2009-04-27 12:10 ` Avi Kivity
2009-04-27 12:17 ` Kevin Wolf
2009-05-02 10:34 ` Stuart Brady
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).