On Thu, Jan 4, 2024 at 4:01 AM Juergen Gross <jgr...@suse.com> wrote: > > Add support for generation a 9pfs protocol response via a format based > approach. > > Strings are stored in a per device string buffer and they are > referenced via their offset in this buffer. This allows to avoid > having to dynamically allocate memory for each single string. > > As a first user of the response handling add a generic p9_error() > function which will be used to return any error to the client. > > Add all format parsing variants in order to avoid additional code churn > later when adding the users of those variants. Prepare a special case > for the "read" case already (format character 'D'): in order to avoid > adding another buffer for read data support doing the read I/O directly > into the response buffer. > > Signed-off-by: Juergen Gross <jgr...@suse.com>
Reviewed-by: Jason Andryuk <jandr...@gmail.com>