zabbix-agent2 VfsFS fails on escaped chars in mount point

XMLWordPrintable

    • Type: Problem report
    • Resolution: Unresolved
    • Priority: Major
    • None
    • Affects Version/s: 6.0.17
    • Component/s: Agent (G)
    • None
    • Environment:
      ubuntu 22.04

      Steps to reproduce:

      1. Run zabbix-agent2 on a computer with a filesystem having a space in the label

      Result:

      With `DebugLevel=4`, we get this message in the log:

      2023/05/21 09:02:41.003619 [VfsFs] cannot discern stats for the mount /tmp/_-_-One\040Touch: no such file or directory

      Here's `/proc/mounts` (note that the space is escaped as `\040`):

      /dev/sdg2 /media/me/One\040Touch exfat rw,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,iocharset=utf8,errors=remount-ro 0 0 

      Here's the output of `mount` (note that the actual mountpoint has a space):

      /dev/sdg2 on /media/me/One Touch type exfat (rw,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,iocharset=utf8,errors=remount-ro) 

      The kernel escapes problematic characters such as " " (ASCII 32) in mountpoint names from `/proc/mounts` (aka `/etc/mtab`)

            Assignee:
            Zabbix Development Team
            Reporter:
            John Brzustowski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: