On Tue, 2019-07-23 at 10:42 +0200, Lukas Bulwahn wrote: > On Tue, Jul 23, 2019 at 9:30 AM Duda, Sebastian <[email protected]> wrote: > > when analyzing the patch > > `<[email protected]>` [1] with > > `get_maintainers.pl --subsystem --status --separator , /tmp/patch`, > > there is the following output: > > > > Chris Mason <[email protected]> (maintainer:BTRFS FILE SYSTEM),Josef Bacik > > <[email protected]> (maintainer:BTRFS FILE SYSTEM),David Sterba > > <[email protected]> (maintainer:BTRFS FILE SYSTEM),Alexander Viro > > <[email protected]> (maintainer:FILESYSTEMS (VFS and > > infrastructure)),"Theodore Ts'o" <[email protected]> (maintainer:EXT4 FILE > > SYSTEM),Andreas Dilger <[email protected]> (maintainer:EXT4 FILE > > SYSTEM),Jaegeuk Kim <[email protected]> (maintainer:F2FS FILE > > SYSTEM),Changman Lee <[email protected]> (maintainer:F2FS FILE > > SYSTEM),Miklos Szeredi <[email protected]> (maintainer:FUSE: FILESYSTEM > > IN USERSPACE),Steven Whitehouse <[email protected]> (supporter:GFS2 > > FILE SYSTEM),Anton Altaparmakov <[email protected]> (supporter:NTFS > > FILESYSTEM),Hugh Dickins <[email protected]> (maintainer:TMPFS (SHMEM > > FILESYSTEM)),[email protected] (open list:BTRFS FILE > > SYSTEM),[email protected] (open > > list),[email protected] (open list:FILESYSTEMS (VFS and > > infrastructure)),[email protected] (open list:EXT4 FILE > > SYSTEM),[email protected] (open list:F2FS FILE > > SYSTEM),[email protected] (open list:FUSE: FILESYSTEM IN > > USERSPACE),[email protected] (open list:GFS2 FILE > > SYSTEM),[email protected] (open list:NTFS > > FILESYSTEM),[email protected] (open list:MEMORY MANAGEMENT) > > Maintained,Buried alive in reporters,Supported > > BTRFS FILE SYSTEM,THE REST,FILESYSTEMS (VFS and infrastructure),EXT4 > > FILE SYSTEM,F2FS FILE SYSTEM,FUSE: FILESYSTEM IN USERSPACE,GFS2 FILE > > SYSTEM,NTFS FILESYSTEM,MEMORY MANAGEMENT,TMPFS (SHMEM FILESYSTEM) > > > > How can I parse this output automatically? or how can I generate a > > parsable output? [] > > I need the tuples of subsystems and status: > > (THE REST, Buried alive in reporters) > > (TMPFS, Maintained) > > (BTRFS FILE SYSTEM, Maintained) > > … > > (GFS2 FILE SYSTEM, Supported) > > > > I'm not aware how to reliably assign the statuses to the subsystems.
Again, run the script using the individual files contained in a patch instead of the entire patch. I again suggest using gnu parallel. > Joe, I hope this example makes more clear what and how Sebastian would > actually like to have the information from the MAINTAINERS file > presented for our use case. Currently, we would consider > get_maintainer.pl to be the proper place for such a feature in the > upstream development. I believe I understand how you want to use the get_maintainer script output. > Joe, would you support and would you accept if we extend > get_maintainer.pl to provide output of the status in such a way that > the status output can be clearly mapped to the subsystem? Not really, no. I don't see much value in your request to others. It seems you are doing some academic work rather than actually using it for sending patches. You are of course welcome to extexd the script in whatever manner you need for your own use, but even here, I don't believe you need to do anything to the script but change how you use it.

