Re: [PATCH 3/6] proc: allocate count + 1 for our read buffer

2020-09-01 Thread Christoph Hellwig
On Thu, Aug 13, 2020 at 05:04:08PM -0400, Josef Bacik wrote: > Al suggested that if we allocate enough space to add in the '\0' > character at the end of our strings, we could just use scnprintf() in > our ->proc_handler functions without having to be fancy about keeping > track of space. There ar

[PATCH 3/6] proc: allocate count + 1 for our read buffer

2020-08-13 Thread Josef Bacik
Al suggested that if we allocate enough space to add in the '\0' character at the end of our strings, we could just use scnprintf() in our ->proc_handler functions without having to be fancy about keeping track of space. There are a lot of these handlers, so the follow ups will be separate, but st