All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2 0/3] fat: convert to the new mount API
@ 2024-07-02 22:39 Eric Sandeen
  2024-07-02 22:41 ` [PATCH V2 1/3] fat: move debug into fat_mount_options Eric Sandeen
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Eric Sandeen @ 2024-07-02 22:39 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: Christian Brauner, OGAWA Hirofumi

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/8dca3c11-99f4-446d-a291-35c50ed2dc14@redhat.com/T/#t
but feel free to squash patches 2 and 3 if you prefer.

Thanks,
-Eric


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

end of thread, other threads:[~2024-07-03  8:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-02 22:39 [PATCH V2 0/3] fat: convert to the new mount API Eric Sandeen
2024-07-02 22:41 ` [PATCH V2 1/3] fat: move debug into fat_mount_options Eric Sandeen
2024-07-03  5:19   ` OGAWA Hirofumi
2024-07-02 22:44 ` [PATCH V2 2/3] fat: Convert to new mount api Eric Sandeen
2024-07-03  5:19   ` OGAWA Hirofumi
2024-07-03  5:21     ` OGAWA Hirofumi
2024-07-02 22:45 ` [PATCH V2 3/3] fat: Convert to new uid/gid option parsing helpers Eric Sandeen
2024-07-03  5:20   ` OGAWA Hirofumi
2024-07-03  8:49 ` [PATCH V2 0/3] fat: convert to the new mount API Christian Brauner

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.