cifs: escape spaces in share names
authorMaciek Borzecki <maciek.borzecki@gmail.com>
Tue, 6 Apr 2021 15:02:29 +0000 (17:02 +0200)
committerSteve French <stfrench@microsoft.com>
Thu, 8 Apr 2021 02:30:27 +0000 (21:30 -0500)
commit0fc9322ab5e1fe6910c9673e1a7ff29f7dd72611
tree7131cf24c813a94f10890d57606abaa2bc78c2af
parentd135be0a7fb83f4dd68721b3355fec6de686834c
cifs: escape spaces in share names

Commit 653a5efb849a ("cifs: update super_operations to show_devname")
introduced the display of devname for cifs mounts. However, when mounting
a share which has a whitespace in the name, that exact share name is also
displayed in mountinfo. Make sure that all whitespace is escaped.

Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
CC: <stable@vger.kernel.org> # 5.11+
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsfs.c