saltstack / saltstack/salt

[BUG] salt-mount fails to query non-Latin filesystem labels on Linux

Open
#59,954 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug severity-medium
Dominant language
Python
Stars
15.7k
Forks
5.6k
Avg merge
2d 44m
Merged PRs (30d)
80

Description

~# ntfslabel /dev/sdf1 -f
Forced to continue.
D - Дети Samsung 1.5 Тб

# salt-call mount.active extended=yes

.....
    /srv/dev-disk-by-uuid-7AF2EDB0F2ED70B5:
        ----------
        alt_device:
            /dev/sdf1
        device:
            /dev/sdf1
        device_label:
            D - M-PM-^TM-PM-5M-QM-^BM-PM-8 Samsung 1.5 M-PM-\
        device_uuid:
            None
        fstype:
            fuseblk
.....

# apt-cache show salt-common
Package: salt-common
Source: salt
Version: 3002.2+ds-1
Architecture: all
Maintainer: Debian Salt Team <pkg-salt-team@lists.alioth.debian.org>
Installed-Size: 30376

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the report on Linux with a filesystem label containing non-Latin characters, using ntfslabel and salt-call mount.active extended=yes as shown. Trace how mount.active obtains and displays device_label, then verify that the reported label remains readable Unicode rather than an escaped or misdecoded value.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, python
Domain
devops, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.