[lxc-devel] [lxc/master] storage: switch to ext4 as default fs

brauner on Github lxc-bot at linuxcontainers.org
Mon Nov 6 11:55:08 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 381 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20171106/4f398b93/attachment.bin>
-------------- next part --------------
From 23d36d180c0047ea71e0cca8d1c5e24ad5829791 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Mon, 6 Nov 2017 12:52:43 +0100
Subject: [PATCH 1/2] storage: switch to ext4 as default filesystem

Closes #1899.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
 src/lxc/storage/storage.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/storage/storage.h b/src/lxc/storage/storage.h
index c656d3952..7156543e9 100644
--- a/src/lxc/storage/storage.h
+++ b/src/lxc/storage/storage.h
@@ -61,7 +61,7 @@
 #endif
 
 #define DEFAULT_FS_SIZE 1073741824
-#define DEFAULT_FSTYPE "ext3"
+#define DEFAULT_FSTYPE "ext4"
 
 #define LXC_STORAGE_INTERNAL_OVERLAY_RESTORE  (1 << 6)
 

From 44fa64e7fbbff2c8fb38bb2e21e3eb0e1de8f6a8 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Mon, 6 Nov 2017 12:54:06 +0100
Subject: [PATCH 2/2] tools: fix help output of lxc-create

Closes #1899.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
 src/lxc/tools/lxc_create.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/tools/lxc_create.c b/src/lxc/tools/lxc_create.c
index 181ee7d92..f791f7995 100644
--- a/src/lxc/tools/lxc_create.c
+++ b/src/lxc/tools/lxc_create.c
@@ -163,7 +163,7 @@ Options :\n\
 \n\
   BDEV options for LVM or Loop (with -B/--bdev lvm/loop) :\n\
       --fstype=TYPE             Create fstype TYPE\n\
-                                (Default: ext3)\n\
+                                (Default: ext4)\n\
       --fssize=SIZE[U]          Create filesystem of\n\
                                 size SIZE * unit U (bBkKmMgGtT)\n\
                                 (Default: 1G, default unit: M)\n",


More information about the lxc-devel mailing list