Skip to contentSkip to conversation

ext4: Why does fsconfig allow repeated mounting?

PATCH In review oaygnahzz 2 participants 2 messages Feb 9 VFS

lore
Share & tools
lore

oaygnahzz

author
#0 lore raw

PATCH 1/1 ext4: Why does fsconfig allow repeated mounting?

Hi all,
The mount interface will report an error for repeated mounting, but fsconfig seems to allow this. Why is that?

Thanks.

---
 fs/fsopen.c | 1 +
 1 file changed, 1 insertion(+)
fs/fsopen.c +1 -0
index 1aaf4cb2afb2..06a8711dd627 100644
@@ -300,6 +300,7 @@ static int vfs_fsconfig_locked(struct fs_context *fc, int cmd,
 
 /**
  * sys_fsconfig - Set parameters and trigger actions on a context
+ *
  * @fd: The filesystem context to act upon
  * @cmd: The action to take
  * @_key: Where appropriate, the parameter key to set
Signature · 1 line
2.33.0
#1 lore raw
Quoted 3 lines · oaygnahzz

Hi all,
The mount interface will report an error for repeated mounting, but fsconfig seems to allow this. Why is that?

The patch is incorrect and unrelated to the question

Quoted 21 lines

Thanks.

---
 fs/fsopen.c | 1 +
 1 file changed, 1 insertion(+)
fs/fsopen.c +1 -0
index 1aaf4cb2afb2..06a8711dd627 100644
@@ -300,6 +300,7 @@ static int vfs_fsconfig_locked(struct fs_context *fc, int cmd,
 
 /**
  * sys_fsconfig - Set parameters and trigger actions on a context
+ *
  * @fd: The filesystem context to act upon
  * @cmd: The action to take
  * @_key: Where appropriate, the parameter key to set
Signature · 1 line
2.33.0