]> git.baikalelectronics.ru Git - kernel.git/commit
9p: add P9_ERRMAX for 9p2000 and 9p2000.u
authorChristian Schoenebeck <linux_oss@crudebyte.com>
Fri, 15 Jul 2022 21:32:30 +0000 (23:32 +0200)
committerDominique Martinet <asmadeus@codewreck.org>
Tue, 4 Oct 2022 22:05:41 +0000 (07:05 +0900)
commit6bf29458a94d0a8a3d152e1eb0cdc1b9683f0a43
treed6efd38f3164d0ffa03f04aaca10385af62d8b27
parent2f872bbb6452993233688981182a8ae2421d0075
9p: add P9_ERRMAX for 9p2000 and 9p2000.u

Add P9_ERRMAX macro to 9P protocol header which reflects the maximum
error string length of Rerror replies for 9p2000 and 9p2000.u protocol
versions. Unfortunately a maximum error string length is not defined by
the 9p2000 spec, picking 128 as value for now, as this seems to be a
common max. size for POSIX error strings in practice.

9p2000.L protocol version uses Rlerror replies instead which does not
contain an error string.

Link: https://lkml.kernel.org/r/3f23191d21032e7c14852b1e1a4ae26417a36739.1657920926.git.linux_oss@crudebyte.com
Signed-off-by: Christian Schoenebeck <linux_oss@crudebyte.com>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
include/net/9p/9p.h