net/9p: show error message if user 'msize' cannot be satisfied
authorChristian Schoenebeck <linux_oss@crudebyte.com>
Thu, 30 Dec 2021 13:23:18 +0000 (14:23 +0100)
committerDominique Martinet <asmadeus@codewreck.org>
Mon, 10 Jan 2022 01:00:09 +0000 (10:00 +0900)
commit15e2721b19acb1bfb18ac90775503b75d8aecbb2
tree69f50064c9e76d1026fdb2d9df6e8d21cab1ba55
parentdeadd8746ec72bd6cbc351a004809f8a49a61d4b
net/9p: show error message if user 'msize' cannot be satisfied

If user supplied a large value with the 'msize' option, then
client would silently limit that 'msize' value to the maximum
value supported by transport. That's a bit confusing for users
of not having any indication why the preferred 'msize' value
could not be satisfied.

Link: https://lkml.kernel.org/r/783ba37c1566dd715b9a67d437efa3b77e3cd1a7.1640870037.git.linux_oss@crudebyte.com
Reported-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Christian Schoenebeck <linux_oss@crudebyte.com>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
net/9p/client.c