linux/Documentation
Eric Sandeen 9f111059e7
fs_parse: add uid & gid option option parsing helpers
Multiple filesystems take uid and gid as options, and the code to
create the ID from an integer and validate it is standard boilerplate
that can be moved into common helper functions, so do that for
consistency and less cut&paste.

This also helps avoid the buggy pattern noted by Seth Jenkins at
https://lore.kernel.org/lkml/CALxfFW4BXhEwxR0Q5LSkg-8Vb4r2MONKCcUCVioehXQKr35eHg@mail.gmail.com/
because uid/gid parsing will fail before any assignment in most
filesystems.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Link: https://lore.kernel.org/r/de859d0a-feb9-473d-a5e2-c195a3d47abb@redhat.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
2024-07-02 06:20:49 +02:00
..
2024-05-23 12:09:22 -07:00
2024-05-25 13:33:53 -07:00
2024-05-18 14:04:20 -07:00
2024-05-16 18:14:10 -05:00
2024-03-25 11:32:29 +01:00
2024-04-03 14:03:09 +02:00
2024-05-21 10:09:28 -07:00
2024-05-23 19:40:26 -07:00
2024-05-17 09:05:46 -07:00
2024-05-18 12:39:20 -07:00