summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2024-06-28 02:26:24 +0200
committerChristian Brauner <brauner@kernel.org>2024-07-02 06:20:49 +0200
commit9f111059e725f7ca79a136bfc734da3c8c1838b4 (patch)
tree4f3606fbe72bb084930fddae3ff36bdad57f92ae /net
parenthostfs: Add const qualifier to host_root in hostfs_fill_super() (diff)
downloadlinux-9f111059e725f7ca79a136bfc734da3c8c1838b4.tar.xz
linux-9f111059e725f7ca79a136bfc734da3c8c1838b4.zip
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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions