Skip to content

exfat: Fixes for ENAMETOOLONG error handling

Takashi Iwai linux-fsdevel lkml 2 versions – Applied

Status from this message: Applied, Thanks for your work!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 1 replyApplied
  2. v14 patches 7 repliesSuperseded

Changes in v2 from the cover letter

* Expand to pr_*() directly in exfat_*() macros
* Add a patch to drop superfluous newlines in error messages

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5exfat: Return ENAMETOOLONG consistently for oversized pathsfs/exfat/namei.c+1 -10 replies
2/5exfat: Define NLS_NAME_* as bit flags explicitlyfs/exfat/exfat_fs.h+3 -30 replies
3/5exfat: Expand exfat_err() and co directly to pr_*() macrofs/exfat/exfat_fs.h fs/exfat/misc.c+7 -220 replies
4/5exfat: Downgrade ENAMETOOLONG error message to debug messagesfs/exfat/nls.c+1 -10 replies
5/5exfat: Drop superfluous new line for error messagesfs/exfat/fatent.c fs/exfat/nls.c fs/exfat/super.c+4 -40 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchPetr Vorel
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] exfat: Fixes for ENAMETOOLONG error handling

Hi,

this is a revised series for fixing the error code of rename syscall as well as cleanup / suppress the superfluous error messages.

As an LTP test case reported, exfat returns the inconsistent error code for the case of renaming oversized file names:
https://bugzilla.suse.com/show_bug.cgi?id=1201725
The first patch fixes this inconsistency.

The second patch is just for correcting the definitions as bit flags, and the remaining two patches are for suppressing the error message that can be triggered too easily to debug messages.

thanks,

Takashi

===

v1: https://lore.kernel.org/r/[email protected]

v1->v2:
* Expand to pr_*() directly in exfat_*() macros
* Add a patch to drop superfluous newlines in error messages

===

Takashi Iwai (5):
exfat: Return ENAMETOOLONG consistently for oversized paths
exfat: Define NLS_NAME_* as bit flags explicitly
exfat: Expand exfat_err() and co directly to pr_*() macro
exfat: Downgrade ENAMETOOLONG error message to debug messages
exfat: Drop superfluous new line for error messages

 fs/exfat/exfat_fs.h | 18 ++++++++++--------
 fs/exfat/fatent.c   |  2 +-
 fs/exfat/misc.c     | 17 -----------------
 fs/exfat/namei.c    |  2 +-
 fs/exfat/nls.c      |  4 ++--
 fs/exfat/super.c    |  4 ++--
 6 files changed, 16 insertions(+), 31 deletions(-)
Signature · 1 line
2.35.3