All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] xfs: Skip repetitive warnings about mount options
@ 2021-02-24 21:43 Pavel Reichl
  2021-02-24 21:43 ` [PATCH v2] xfs: Add test for printing deprec. " Pavel Reichl
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Pavel Reichl @ 2021-02-24 21:43 UTC (permalink / raw)
  To: linux-xfs

At least some version of mount will look in /proc/mounts and send in all of the 
options that it finds as part of a remount command. We also /do/ still emit
"attr2" in /proc/mounts (as we probably should), so remount passes that back
in, and we emit a warning, which is not great.

In other words mount passes in "attr2" and the kernel emits a deprecation
warning for attr2, even though the user/admin never explicitly asked for the
option.

So, lets skip the warning if (we are remounting && deprecated option
state is not changing).

I also attached test for xfstests that I used for testing (the test
will be proposed on xfstests-list after/if this patch is merged).

V2 vs. V1
Kernel:
* Added new patch that renames mp to parsing_mp in xfs_fs_parse_param()
* Added new function xfs_fs_warn_deprecated() to encapsulate the logic for displaying the deprecation warning.
* Fixed some white space issues.

Test:
* Skip test on old kernels that don't print any deprecation warning. 

Pavel Reichl (2):
  xfs: rename variable mp to parsing_mp
  xfs: Skip repetitive warnings about mount options

 fs/xfs/xfs_super.c | 118 +++++++++++++++++++++++++--------------------
 1 file changed, 67 insertions(+), 51 deletions(-)

-- 
2.29.2


^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH v2 0/2] xfs: Skip repetitive warnings about mount options
@ 2021-03-19 15:32 Pavel Reichl
  2021-03-19 15:32 ` [PATCH v2 2/2] " Pavel Reichl
  0 siblings, 1 reply; 9+ messages in thread
From: Pavel Reichl @ 2021-03-19 15:32 UTC (permalink / raw)
  To: linux-xfs

Hello,

I belive that this patch set was missed in recent for-next branch update.

Patches are the same as before I just added the reviewed-by tags.

Thanks!

...
At least some version of mount will look in /proc/mounts and send in all of the 
options that it finds as part of a remount command. We also /do/ still emit
"attr2" in /proc/mounts (as we probably should), so remount passes that back
in, and we emit a warning, which is not great.

In other words mount passes in "attr2" and the kernel emits a deprecation
warning for attr2, even though the user/admin never explicitly asked for the
option.

So, lets skip the warning if (we are remounting && deprecated option
state is not changing).

I also attached test for xfstests that I used for testing (the test
will be proposed on xfstests-list after/if this patch is merged).

V2 vs. V1

* Added new patch that renames mp to parsing_mp in xfs_fs_parse_param()
* Added new function xfs_fs_warn_deprecated() to encapsulate the logic for displaying the deprecation warning.
* Fixed some white space issues.

Pavel Reichl (2):
  xfs: rename variable mp to parsing_mp
  xfs: Skip repetitive warnings about mount options

 fs/xfs/xfs_super.c | 118 +++++++++++++++++++++++++--------------------
 1 file changed, 67 insertions(+), 51 deletions(-)

-- 
2.30.2


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-03-19 15:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-24 21:43 [PATCH v2 0/2] xfs: Skip repetitive warnings about mount options Pavel Reichl
2021-02-24 21:43 ` [PATCH v2] xfs: Add test for printing deprec. " Pavel Reichl
2021-02-24 21:43 ` [PATCH v2 1/2] xfs: rename variable mp to parsing_mp Pavel Reichl
2021-02-25  2:40   ` Darrick J. Wong
2021-03-09 11:42   ` Carlos Maiolino
2021-02-24 21:43 ` [PATCH v2 2/2] xfs: Skip repetitive warnings about mount options Pavel Reichl
2021-02-25  2:41   ` Darrick J. Wong
2021-03-09 11:44   ` Carlos Maiolino
2021-03-19 15:32 [PATCH v2 0/2] " Pavel Reichl
2021-03-19 15:32 ` [PATCH v2 2/2] " Pavel Reichl

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.