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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue 2018-07-31 14:00:37, David Howells wrote:
> 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.

Yes, that would work. Except for strings that can contain 's, for
example filenames. \0 could be used to terminate arbitrary
strings.. AFAICT this goes over file descriptors, so length is
available, and we could use \0 to terminate strings.

									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux