[systemd-bugs] [Bug 89851] New: fstab-generator creates incorrect mount units for CIFS
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Mar 31 10:56:15 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=89851
Bug ID: 89851
Summary: fstab-generator creates incorrect mount units for CIFS
Product: systemd
Version: unspecified
Hardware: All
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: general
Assignee: systemd-bugs at lists.freedesktop.org
Reporter: artyom.h31 at gmail.com
QA Contact: systemd-bugs at lists.freedesktop.org
Hello. I'm using systemd 219 on Ubuntu 15.04.
I have the following line in /etc/fstab:
\\192.168.1.110\ExtHDD /mnt/nas cifs
vers=3.0,nofail,credentials=/etc/net_pass,uid=1000,gid=1000 0 0
"sudo mount /mnt/nas/" works properly in this case. Hovewer, fstab-generator
creates an incorrect mount unit:
# Automatically generated by systemd-fstab-generator
[Unit]
SourcePath=/etc/fstab
Documentation=man:fstab(5) man:systemd-fstab-generator(8)
[Mount]
What=\192.168.1.110\ExtHDD
Where=/mnt/nas
Type=cifs
Options=vers=3.0,nofail,credentials=/etc/net_pass,uid=1000,gid=1000
Note a missing backslash before the IP address. "systemctl status
mnt-nas.mount" obviously tells that unit wasn't able to start:
марта 31 20:23:32 artyom-H97-D3H mount[7360]: mount.cifs: bad UNC
(\192.168.1.110\ExtHDD)
Let's add more backslashes to the CIFS path:
\\\\192.168.1.110\\ExtHDD /mnt/nas cifs
vers=3.0,nofail,credentials=/etc/net_pass,uid=1000,gid=1000 0 0
In this case, generated mount unit is correct:
# Automatically generated by systemd-fstab-generator
[Unit]
SourcePath=/etc/fstab
Documentation=man:fstab(5) man:systemd-fstab-generator(8)
[Mount]
What=\\192.168.1.110\ExtHDD
Where=/mnt/nas
Type=cifs
Options=vers=3.0,nofail,x-gvfs-show,credentials=/etc/nas_passwd,uid=1000,gid=1000,cache=loose
However, mount commands refuses to work:
$ sudo mount /mnt/nas
mount.cifs: bad UNC (\\\\192.168.1.110\\ExtHDD)
I don't precisely know if fstab entries should contain escape characters (extra
backslashes). Nonetheless, fstab-generator and mount command should have the
same behaviour anyway.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150331/8964a93f/attachment.html>
More information about the systemd-bugs
mailing list