Thread (18 messages) 18 messages, 3 authors, 2021-05-03

Re: [PATCH v1 10/12] nfsd: Avoid non-flexible API in seq_quote_mem()

From: Andy Shevchenko <hidden>
Date: 2021-05-03 21:14:26
Also in: linux-fsdevel, lkml

On Tue, May 4, 2021 at 12:11 AM Andy Shevchenko
[off-list ref] wrote:
On Tue, May 4, 2021 at 12:09 AM Al Viro [off-list ref] wrote:
quoted
On Mon, May 03, 2021 at 11:56:41PM +0300, Andy Shevchenko wrote:
quoted
On Mon, May 3, 2021 at 11:54 PM Al Viro [off-list ref] wrote:
...
quoted
quoted
Any suggestions how to replace that API with a newer one?
seq_escape_mem(), perhaps?
I think I have a better idea. What about adding seq_escape_with_flags()
and seq_escape() --> seq_escape_with_flags(..., ESCAPE_OCTAL, ...) ?

Would it work for you?
Ah, it wouldn't work for the user, because it wants to pass the buffer size.
Okay, I'll take your suggestion, thanks!

-- 
With Best Regards,
Andy Shevchenko
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help