[RHEL8,COMMIT] fs/ext4: removed FS_VIRTUALIZED flag from 'ext3' mode of ext4 module

Submitted by Konstantin Khorenko on May 28, 2020, 9:41 a.m.

Details

Message ID 202005280941.04S9fCcF023962@finist_co8.work.ct
State New
Series "fs/ext4: removed FS_VIRTUALIZED flag from 'ext3' mode of ext4 module"
Headers show

Commit Message

Konstantin Khorenko May 28, 2020, 9:41 a.m.
The commit is pushed to "branch-rh8-4.18.0-80.1.2.vz8.3.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-80.1.2.vz8.3.9
------>
commit 8ac05deaee614afeb6c927c5ba25ade11d503de9
Author: Valeriy.Vdovin <valeriy.vdovin@virtuozzo.com>
Date:   Thu May 28 12:41:11 2020 +0300

    fs/ext4: removed FS_VIRTUALIZED flag from 'ext3' mode of ext4 module
    
    FS_VIRTUALIZED flag makes a registered filesystem visible in container.
    ext3 is part of ext4 module that is run with untested set of flags.
    
    Signed-off-by: Valeriy.Vdovin <valeriy.vdovin@virtuozzo.com>
    
    khorenko@: this flag allows to mount ext3 fs inside a Container
    if a Container has proper permissions for a device to be mounted.
    In vz7 we never allowed it, we don't test it, so don't see any
    advantages of enabling it in vz8. We can change this of course upon
    request.
---
 fs/ext4/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 870593557a06..324ad7680763 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -134,7 +134,7 @@  static struct file_system_type ext3_fs_type = {
 	.name		= "ext3",
 	.mount		= ext4_mount,
 	.kill_sb	= kill_block_super,
-	.fs_flags	= FS_REQUIRES_DEV | FS_VIRTUALIZED,
+	.fs_flags	= FS_REQUIRES_DEV,
 };
 MODULE_ALIAS_FS("ext3");
 MODULE_ALIAS("ext3");