Re: [PATCH 36/38] vfs: Add a sample program for the new mount API [ver #10]

From: David Howells
Date: Tue Jul 31 2018 - 09:00:45 EST


Pavel Machek <pavel@xxxxxx> wrote:

> Regexes do not work in presence of arbitrary strings in the
> message. If we had a way to tell start / end of string inserted in the
> message, yes, the problem would be solved.

You could use quotes around arbitrary insertions, ie. you always do '%s'
inside the kernel if %s doesn't correspond to a specific set of text
constants.

David