Hi Andrey,
> Patch with tests attached.
I noticed the patch on the commitfest and decided to take a look.
The patch looks good to me. I'm marking it as RfC.
-- Best regards,Aleksander Alekseev