aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorEric Sandeen <[email protected]>2024-06-27 19:26:24 -0500
committerChristian Brauner <[email protected]>2024-07-02 06:20:49 +0200
commit9f111059e725f7ca79a136bfc734da3c8c1838b4 (patch)
tree4f3606fbe72bb084930fddae3ff36bdad57f92ae /tools/perf/scripts/python/exported-sql-viewer.py
parent104eef133fd9c17e4dc28bf43f592a86f26d8a59 (diff)
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions