[Bug 1724013] Re: mount does not correctly process x-* options
DaytonaJohn
daytonajra at gmail.com
Thu Nov 9 20:53:55 UTC 2017
However, mount.cifs ignores the options passed to it by the util-linux
mount when it is not invoked by root. In that case, mount.cifs obtains
the options from the fstab file and does not do any processing to ignore
comments. So the status of this bug should not be invalid, unless
mount.cifs is not part of util-linux.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1724013
Title:
mount does not correctly process x-* options
Status in util-linux package in Ubuntu:
Invalid
Bug description:
According to the mount(8) man page:
All options prefixed with "x-" are interpreted as comments or as
userspace application-specific options. These options are not stored
in the mtab file, nor sent to the mount.type helpers nor to the
mount(2) system call. The suggested format is x-appname.option (e.g.
x-systemd.automount).
However, adding any such option to cifs entry, such as "x-test.opt"
(other than x-systemd.automount) results in:
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
No options starting with "x-" should be passed to mount.cifs, so the
mount should succeed.
Running Ubuntu 16.04.3 LTS
mount package installed is 2.27.1-6ubuntu3.3
This error always happens when such an option is specified. Here is an example fstab line that causes this failure:
//192.168.1.3/Public /mnt/mybook cifs noauto,x-test.opt,rw,users,noperm,guest,soft,cache=none,sec=none 0 0
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: mount 2.27.1-6ubuntu3.3
ProcVersionSignature: Ubuntu 4.4.0-97.120-generic 4.4.87
Uname: Linux 4.4.0-97-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
ApportVersion: 2.20.1-0ubuntu2.10
Architecture: amd64
CurrentDesktop: KDE
Date: Mon Oct 16 12:29:40 2017
InstallationDate: Installed on 2016-04-22 (542 days ago)
InstallationMedia: Kubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/usr/bin/tcsh
SourcePackage: util-linux
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1724013/+subscriptions
More information about the foundations-bugs
mailing list