Skip to content
Commit 62176420 authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Christian Brauner
Browse files

fs: avoid empty option when generating legacy mount string

As each option string fragment is always prepended with a comma it would
happen that the whole string always starts with a comma. This could be
interpreted by filesystem drivers as an empty option and may produce
errors.

For example the NTFS driver from ntfs.ko behaves like this and fails
when mounted via the new API.

Link: https://github.com/util-linux/util-linux/issues/2298


Signed-off-by: default avatarThomas Weißschuh <linux@weissschuh.net>
Fixes: 3e1aeb00

 ("vfs: Implement a filesystem superblock creation/configuration context")
Cc: stable@vger.kernel.org
Message-Id: <20230607-fs-empty-option-v1-1-20c8dbf4671b@weissschuh.net>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 943211c8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment