Skip to contentSkip to conversation

add cramfs support to domU kernels

PATCH In review Sean Dague 4 participants 4 messages Aug 10, 2005

lore
Share & tools
lore

Sean Dague

author
#0 lore raw

PATCH 1/1 add cramfs support to domU kernels

The following patch adds cramfs support to domU kernels so cramfs based ramdisks can be used for initrds.

Diffstat output:

 xenU_defconfig_x86_32 |    2 +-
 xenU_defconfig_x86_64 |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_32 +1 -1
diff -r 38c7c25b3cb9 linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_32
@@ -415,7 +415,7 @@
 # CONFIG_BEFS_FS is not set
 # CONFIG_BFS_FS is not set
 # CONFIG_EFS_FS is not set
-# CONFIG_CRAMFS is not set
+CONFIG_CRAMFS=y
 # CONFIG_VXFS_FS is not set
 # CONFIG_HPFS_FS is not set
 # CONFIG_QNX4FS_FS is not set
linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_64 +1 -1
diff -r 38c7c25b3cb9 linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_64
@@ -748,7 +748,7 @@
 # CONFIG_BEFS_DEBUG is not set
 CONFIG_BFS_FS=m
 CONFIG_EFS_FS=m
-CONFIG_CRAMFS=m
+CONFIG_CRAMFS=y
 CONFIG_VXFS_FS=m
 # CONFIG_HPFS_FS is not set
 CONFIG_QNX4FS_FS=m

-Sean

Signature · 9 lines
__________________________________________________________________

Sean Dague                                       Mid-Hudson Valley
sean at dague dot net                            Linux Users Group
http://dague.net                                 http://mhvlug.org

There is no silver bullet.  Plus, werewolves make better neighbors
than zombies, and they tend to keep the vampire population down.
__________________________________________________________________

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 4 lines · Sean Dague

The following patch adds cramfs support to domU kernels so cramfs based ramdisks can be used for initrds.

This is very useful for supporting an automated test system that uses initrds (like the console testsuite). Thanks Sean!

Regards,

Anthony Liguori

Quoted 45 lines

Diffstat output:

xenU_defconfig_x86_32 |    2 +-
xenU_defconfig_x86_64 |    2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff -r 38c7c25b3cb9 linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_32

linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_32 +1 -1
@@ -415,7 +415,7 @@
 # CONFIG_BEFS_FS is not set
 # CONFIG_BFS_FS is not set
 # CONFIG_EFS_FS is not set
-# CONFIG_CRAMFS is not set
+CONFIG_CRAMFS=y
 # CONFIG_VXFS_FS is not set
 # CONFIG_HPFS_FS is not set
 # CONFIG_QNX4FS_FS is not set

diff -r 38c7c25b3cb9 linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_64

linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_64 +0 -0
@@ -748,7 +748,7 @@
 # CONFIG_BEFS_DEBUG is not set

CONFIG_BFS_FS=m
CONFIG_EFS_FS=m

linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_64 +1 -1
-CONFIG_CRAMFS=m
+CONFIG_CRAMFS=y

CONFIG_VXFS_FS=m
# CONFIG_HPFS_FS is not set
CONFIG_QNX4FS_FS=m

-Sean

------------------------------------------------------------------------

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
Quoted 5 lines
Quoted 2 lines

The following patch adds cramfs support to domU kernels so cramfs based ramdisks can be used for initrds.

This is very useful for supporting an automated test system that uses initrds (like the console testsuite). Thanks Sean!

To clarify further - you don't need to be root to make a cramfs initrd because you don't need to loopback mount anything. This makes it rather more convenient for developers who don't have root on their machines.

Cheers,
Mark

Quoted 56 lines

Regards,

Anthony Liguori

Quoted 41 lines

Diffstat output:

xenU_defconfig_x86_32 |    2 +-
xenU_defconfig_x86_64 |    2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff -r 38c7c25b3cb9 linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_32 ---
a/linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_32 Tue Aug 9
13:53:15 2005 +++
b/linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_32 Tue Aug 9
22:43:16 2005 @@ -415,7 +415,7 @@
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set

linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_32 +1 -1
-# CONFIG_CRAMFS is not set
+CONFIG_CRAMFS=y

# CONFIG_VXFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
diff -r 38c7c25b3cb9 linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_64 ---
a/linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_64 Tue Aug 9
13:53:15 2005 +++
b/linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_64 Tue Aug 9
22:43:16 2005 @@ -748,7 +748,7 @@
# CONFIG_BEFS_DEBUG is not set
CONFIG_BFS_FS=m
CONFIG_EFS_FS=m

linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_64 +1 -1
-CONFIG_CRAMFS=m
+CONFIG_CRAMFS=y

CONFIG_VXFS_FS=m
# CONFIG_HPFS_FS is not set
CONFIG_QNX4FS_FS=m

-Sean

Quoted 6 lines

------------------------------------------------------------------------

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw

This reminds me a side problem I experienced.

x235:/tmp/xen-unstable.hg/linux-2.6-xen-sparse/arch/xen/configs # grep CONFIG_REISERFS_FS=y * xen0_defconfig_x86_32:CONFIG_REISERFS_FS=y xen0_defconfig_x86_64:CONFIG_REISERFS_FS=y xenU_defconfig_x86_32:CONFIG_REISERFS_FS=y

x235:/tmp/xen-unstable.hg/linux-2.6-xen-sparse/arch/xen/configs # grep REISERFS xenU_defconfig_x86_64
CONFIG_REISERFS_FS=m

REISERFS has been turned on by default on all the config files except the one for xenU on x86_64. Any particular reason for not turning it on for xenU on x86_64? This sometimes causes problems when booting domU with REISERFS as domU root fs. I have to build an initrd for it.

Thanks,
Li

Mark Williamson
<mark.williamson@
cl.cam.ac.uk> To
Sent by: [email protected]
xen-devel-bounces cc
@lists.xensource. Sean Dague <[email protected]>
com Subject
Re: [Xen-devel] [PATCH] add cramfs support to domU kernels
08/09/2005 10:36
PM

Quoted 5 lines
Quoted 2 lines

The following patch adds cramfs support to domU kernels so cramfs based ramdisks can be used for initrds.

This is very useful for supporting an automated test system that uses initrds (like the console testsuite). Thanks Sean!

To clarify further - you don't need to be root to make a cramfs initrd because
you don't need to loopback mount anything. This makes it rather more convenient for developers who don't have root on their machines.

Cheers,
Mark

Quoted 14 lines

Regards,

Anthony Liguori

Quoted 10 lines

Diffstat output:

xenU_defconfig_x86_32 |    2 +-
xenU_defconfig_x86_64 |    2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff -r 38c7c25b3cb9 linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_32 --- a/linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_32

Tue Aug 9

Quoted 2 lines
Quoted 2 lines

13:53:15 2005 +++ b/linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_32

Tue Aug 9

Quoted 4 lines
Quoted 4 lines

22:43:16 2005 @@ -415,7 +415,7 @@
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set

Quoted 8 lines
Quoted 8 lines
linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_32 +1 -1
-# CONFIG_CRAMFS is not set
+CONFIG_CRAMFS=y

# CONFIG_VXFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
diff -r 38c7c25b3cb9 linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_64 --- a/linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_64

Tue Aug 9

Quoted 2 lines
Quoted 2 lines

13:53:15 2005 +++ b/linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_64

Tue Aug 9

Quoted 17 lines
Quoted 17 lines

22:43:16 2005 @@ -748,7 +748,7 @@
# CONFIG_BEFS_DEBUG is not set
CONFIG_BFS_FS=m
CONFIG_EFS_FS=m

linux-2.6-xen-sparse/arch/xen/configs/xenU_defconfig_x86_64 +1 -1
-CONFIG_CRAMFS=m
+CONFIG_CRAMFS=y

CONFIG_VXFS_FS=m
# CONFIG_HPFS_FS is not set
CONFIG_QNX4FS_FS=m

-Sean

------------------------------------------------------------------------

Quoted 9 lines
Quoted 4 lines

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel