Skip to content

fat: convert to the new mount API

Eric Sandeen linux-fsdevel 3 versions – Applied

Status from this message: Applied to the vfs.mount.api branch of the vfs/vfs.git tree.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/23 patches 5 repliesApplied
  2. v2 posting 1/21 of 2 patches 4 repliesSuperseded
  3. v12 patches 1 replySuperseded

Patches in v2 posting 2/2 Applied

#Subject and filesSizeRepliesApplied
1/3fat: move debug into fat_mount_optionsfs/fat/fat.h fs/fat/inode.c+6 -61 reply
2/3fat: Convert to new mount apifs/fat/fat.h fs/fat/inode.c fs/fat/namei_msdos.c +1 more+419 -3552 replies
3/3fat: Convert to new uid/gid option parsing helpersfs/fat/inode.c+4 -121 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchOGAWA Hirofumi
1/3A-b
2/3A-b
3/3A-b

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/3] fat: convert to the new mount API

This short series converts the fat/vfat/msdos filesystem to use the new mount API.

V2 addresses the issues raised with the 2nd patch in the first series, details are in patch this time.

I've tested it with a hacky shell script found at

https://gist.github.com/sandeen/3492a39c3f2bf16d1ccdd2cd1c681ccd

which tries every possible option, including some with invalid values, on both vfat and msdos mounts. It then tests random combinations of 2, 3, and 4 options, including possibly invalid options.

I captured stdout from two runs with and without these modifications, and the results are identical.

As patch 2 notes, I left codepage loading to fill_super(), rather than validating codepage options as they are parsed. This is because i.e.

mount -o "iocharset=nope,iocharset=iso8859-1"

passes today, due to the last iocharset option being the only one that is loaded. It might be nice to validate such options as they are parsed, but doing so would make the above command line fail, so I'm not sure if it's a good idea. I do have a patch to validate as we parse, if that's desired.

Lastly, the 3rd patch converts to use the new uid/gid helpers as proposed
at https://lore.kernel.org/linux-fsdevel/[email protected]/T/#t
but feel free to squash patches 2 and 3 if you prefer.

Thanks,
-Eric