Skip to contentSkip to conversation

uml: depend on !USERMODE in drivers/block/Kconfig and drop arch/um/Kconfig_block

PATCH In review [email protected] 3 participants 6 messages Jan 13, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 8/8 uml: depend on !USERMODE in drivers/block/Kconfig and drop arch/um/Kconfig_block

From: Paolo 'Blaisorblade' Giarrusso <[email protected]>

Finally, we end with this the need to update arch/um/Kconfig_block with changes in drivers/block/Kconfig - we include directly that; UML-specific entries were moved into it (they are very few).

---

 linux-2.6.11-paolo/arch/um/Kconfig       |    2 
 linux-2.6.11-paolo/drivers/block/Kconfig |   57 ++++++++++++++++
 linux-2.6.11/arch/um/Kconfig_block       |  105 -------------------------------
 3 files changed, 56 insertions(+), 108 deletions(-)
arch/um/Kconfig_block deleted +0 -105
diff -L arch/um/Kconfig_block -puN arch/um/Kconfig_block~uml-kconfig-block-update /dev/null
@@ -1,105 +0,0 @@
-
-menu "Block Devices"
-
-config BLK_DEV_UBD
-	bool "Virtual block device"
-	help
-        The User-Mode Linux port includes a driver called UBD which will let
-        you access arbitrary files on the host computer as block devices.
-        Unless you know that you do not need such virtual block devices say
-        Y here.
-
-config BLK_DEV_UBD_SYNC
-	bool "Always do synchronous disk IO for UBD"
-	depends on BLK_DEV_UBD
-	help
-        Writes to the virtual block device are not immediately written to the 
-	host's disk; this may cause problems if, for example, the 
-	User-Mode Linux 'Virtual Machine' uses a journalling filesystem and 
-	the host computer crashes.
-
-        Synchronous operation (i.e. always writing data to the host's disk
-        immediately) is configurable on a per-UBD basis by using a special
-        kernel command line option.  Alternatively, you can say Y here to
-        turn on synchronous operation by default for all block devices.
-
-        If you're running a journalling file system (like reiserfs, for
-        example) in your virtual machine, you will want to say Y here.  If
-        you care for the safety of the data in your virtual machine, Y is a
-        wise choice too.  In all other cases (for example, if you're just
-        playing around with User-Mode Linux) you can choose N.
-
-config BLK_DEV_COW_COMMON
-	bool
-	default BLK_DEV_UBD
-
-config BLK_DEV_LOOP
-	tristate "Loopback device support"
-
-config BLK_DEV_NBD
-	tristate "Network block device support"
-	depends on NET
-
-config BLK_DEV_RAM
-	tristate "RAM disk support"
-
-config BLK_DEV_RAM_COUNT
-	int "Default number of RAM disks" if BLK_DEV_RAM
-	default "16"
-
-config BLK_DEV_RAM_SIZE
-	int "Default RAM disk size"
-	depends on BLK_DEV_RAM
-	default "4096"
-
-config BLK_DEV_INITRD
-	bool "Initial RAM disk (initrd) support"
-	depends on BLK_DEV_RAM=y
-
-#Copied directly from drivers/block/Kconfig
-config INITRAMFS_SOURCE
-	string "Source directory of cpio_list"
-	default ""
-	help
-	  This can be set to either a directory containing files, etc to be
-	  included in the initramfs archive, or a file containing newline
-	  separated entries.
-
-	  If it is a file, it should be in the following format:
-	    # a comment
-	    file <name> <location> <mode> <uid> <gid>
-	    dir <name> <mode> <uid> <gid>
-	    nod <name> <mode> <uid> <gid> <dev_type> <maj> <min>
-
-	  Where:
-	    <name>      name of the file/dir/nod in the archive
-	    <location>  location of the file in the current filesystem
-	    <mode>      mode/permissions of the file
-	    <uid>       user id (0=root)
-	    <gid>       group id (0=root)
-	    <dev_type>  device type (b=block, c=character)
-	    <maj>       major number of nod
-	    <min>       minor number of nod
-
-	  If you are not sure, leave it blank.
-
-config MMAPPER
-	tristate "Example IO memory driver"
-	depends on BROKEN
-	help
-        The User-Mode Linux port can provide support for IO Memory
-        emulation with this option.  This allows a host file to be
-        specified as an I/O region on the kernel command line. That file
-        will be mapped into UML's kernel address space where a driver can
-        locate it and do whatever it wants with the memory, including
-        providing an interface to it for UML processes to use.
-
-        For more information, see
-        <http://user-mode-linux.sourceforge.net/iomem.html>.
-
-        If you'd like to be able to provide a simulated IO port space for
-        User-Mode Linux processes, say Y.  If unsure, say N.
-
-source "drivers/block/Kconfig.iosched"
-
-endmenu
arch/um/Kconfig renamed from arch/um/Kconfig~uml-kconfig-block-update +1 -1
diff -puN arch/um/Kconfig~uml-kconfig-block-update arch/um/Kconfig
@@ -263,7 +263,7 @@ source "drivers/base/Kconfig"
 
 source "arch/um/Kconfig_char"
 
-source "arch/um/Kconfig_block"
+source "drivers/block/Kconfig"
 
 config NETDEVICES
 	bool
drivers/block/Kconfig renamed from drivers/block/Kconfig~uml-kconfig-block-update +55 -2

83 lines not on this page · raw message

_

-------------------------------------------------------
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
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#1 lore raw

I'd prefer that USERMODE be changed to UML.

Jeff

-------------------------------------------------------
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
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#2 lore raw
Quoted 1 line · Jeff Dike

I'd prefer that USERMODE be changed to UML.

Ok, what you'd like is an additional patch however, because CONFIG_USERMODE has existed for ages, so for now this can go in, right?

The additional patch will be more or less a global "search and replace" USERMODE -> UML.

It's ok, I'll do it on top of these patches I sent.

Signature · 13 lines
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade


-------------------------------------------------------
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
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
#3 lore raw
Quoted 3 lines · [email protected] said:

Ok, what you'd like is an additional patch however, because CONFIG_USERMODE has existed for ages, so for now this can go in, right?

Yup, your patches are in my tree.

Jeff

-------------------------------------------------------
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
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#4 lore raw
Quoted 6 lines · Jeff Dike
Quoted 3 lines · [email protected] said:

Ok, what you'd like is an additional patch however, because CONFIG_USERMODE has existed for ages, so for now this can go in, right?

Yup, your patches are in my tree.

Ok, thanks for quick merging - I hope that Andrew Morton merges it also directly, since I CC'ed him.

And seeing you so promptly answer probably means that I'll no longer need to queue patches on my own tree, and to find a way to snapshot it; this is a good improvement over the past and helps my work. Thanks a lot for it.

Signature · 13 lines
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade


-------------------------------------------------------
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
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
#5 lore raw
Quoted 6 lines · Blaisorblade
Quoted 5 lines · Jeff Dike
Quoted 3 lines · [email protected] said:

Ok, what you'd like is an additional patch however, because CONFIG_USERMODE has existed for ages, so for now this can go in, right?

Quoted 8 lines
Quoted 1 line

Yup, your patches are in my tree.

Ok, thanks for quick merging - I hope that Andrew Morton merges it also directly, since I CC'ed him.

And seeing you so promptly answer probably means that I'll no longer need to queue patches on my own tree, and to find a way to snapshot it; this is a good improvement over the past and helps my work. Thanks a lot for it.

So, I'm also going to post some other patches in my local tree - I'm cc'ing them to Andrew anyway, since they are (I hope) tested enough... part of them has staged inside -bb.

Bye

Signature · 13 lines
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade


-------------------------------------------------------
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
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel