All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tyler Spivey <tspivey8@gmail.com>
To: linux-cifs@vger.kernel.org
Subject: Bug with mount.cifs and mapchars
Date: Tue, 23 May 2023 18:42:34 -0700	[thread overview]
Message-ID: <ZG1rih4YPhwaQdQs@storage> (raw)

Hi.

Note: I'm not subscribed, please CC.

I'm trying to mount a Windows 10 share from Linux with mapchars,
but it still uses the SFM mapping.

Linux storage 5.15.0-72-generic #79-Ubuntu SMP Wed Apr 19 08:22:18 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
mount.cifs version: 6.14
Command line: mount //192.168.145.1/e e -o username=tyler,uid=tyler,mapchars

This also failed under Arch:

Linux arch1 6.3.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 21 May 2023 16:15:22 +0000 x86_64 GNU/Linux
mount.cifs version: 7.0

If I create a file called test? in a directory, the ?
shows up on the Windows machine as u+f025 (SFM mapping).
With mapchars, I would expect u+f03f (SFU mapping).

Looking at the kernel source for version 6.3.3,
it looks like sfu_remap needs to be set for this to work.
However, I can't find anything which sets it (mapchars doesn't seem to
be hooked up to it).

Thanks,
Tyler

             reply	other threads:[~2023-05-24  1:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-24  1:42 Tyler Spivey [this message]
2023-05-24  8:40 ` Bug with mount.cifs and mapchars Steve French

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZG1rih4YPhwaQdQs@storage \
    --to=tspivey8@gmail.com \
    --cc=linux-cifs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.