The thing is not about bloat, the thing is that I find it completely unnecessary, you can accomplish all you want with the normal scan. If the only thing that have changed is the path you would have wanted it will pick this up, the only thing that might happen is that you pick up more changed content, which is hardly a bad thing.
So what I'm trying to say is that I don't see any need to expand the method, the scan feature is ofcourse needed and is why its available. so what you want is that when inotify happens, just send scan to jsonrpc and it would work.
What you are proposing would need to be implemented in one of two ways.
- Any path you give it will scan or clean, despite it being in sources
- Scan only if given path is in sources
Problem with 1 is that every single method has its distinct security, and scanning any path despite it being in sources is a distinctly different security than just scanning what is available, hence it would need to be a different method.
I'm pretty sure you refer to number 2 which would mean jsonrpc need to check if proposed path is in sources, and if the current user has right to alter that source. It will be more code than you think to make it sturdy, and frankly more intelligence than what should be in jsonrpc. (it should ONLY translate from jsonrpc to xbmc core features) so if you implement that security in core, adding the notification stuff for vfs would be a small addition.
What I am trying to say is that all you are trying to do is working around a greater problem which could be fixed much differently. And yes as you say the source is open, feel free to alter your local xbmc and use that I can't and won't stop that

but reaching trunk I will not allow, since I see no use for it.