mount -t overlayfs misinforms when nonexisting directories are provided

Bug #1483325 reported by Mario Splivalo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Incomplete
Medium
Andy Whitcroft

Bug Description

Consider the directory structure like this:

root@MIKE /tmp/ofs> ls -al
total 20
drwxr-xr-x 5 root root 4096 Aug 10 18:09 .
drwxrwxrwt 9 root root 4096 Aug 10 18:09 ..
drwxr-xr-x 2 root root 4096 Aug 10 18:09 lower
drwxr-xr-x 2 root root 4096 Aug 10 18:09 mounting
drwxr-xr-x 2 root root 4096 Aug 10 18:09 upper

Mounting upper over lower on mounting mount point works just fine:

root@MIKE /tmp/ofs> mount -t overlayfs myoverlay -o lowerdir=lower,upperdir=upper mounting/
root@MIKE /tmp/ofs> df -Th mounting/
Filesystem Type Size Used Avail Use% Mounted on
myoverlay overlayfs 219G 94G 114G 46% /tmp/ofs/mounting
root@MIKE /tmp/ofs>

However if the directory name is misspelled (that is, we're providing wrong directory), the error message is misleading:

32 root@MIKE /tmp/ofs> mount -t overlayfs myoverlay -o lowerdir=IAMWRONG,upperdir=upper mounting/
mount: special device myoverlay does not exist

I'm running this on Ubuntu 14.04.3 LTS, using 3.13.0-61-generic kernel.

I'm not sure if this fits under 'linux' package, but I can't seem to be able to find 'mount' package in Launchpad.
---
ApportVersion: 2.14.1-0ubuntu3.11
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: mario 2458 F.... pulseaudio
 /dev/snd/controlC0: mario 2458 F.... pulseaudio
CurrentDesktop: MATE
DistroRelease: Ubuntu 14.04
HibernationDevice: RESUME=UUID=fa8de8e9-450d-4a2e-8ca6-fa542a0352e3
InstallationDate: Installed on 2014-12-16 (236 days ago)
InstallationMedia: Ubuntu MATE 14.04.1 "Trusty Tahr" - final amd64 (20141111)
MachineType: LENOVO 42405XG
NonfreeKernelModules: nvidia
Package: linux (not installed)
ProcFB:

ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-61-generic root=UUID=a3231802-c7ff-406a-9aca-83a4bb0c7d70 ro quiet splash
ProcVersionSignature: Ubuntu 3.13.0-61.100-generic 3.13.11-ckt22
RelatedPackageVersions:
 linux-restricted-modules-3.13.0-61-generic N/A
 linux-backports-modules-3.13.0-61-generic N/A
 linux-firmware 1.127.14
Tags: trusty
Uname: Linux 3.13.0-61-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip disk fuse libvirtd lpadmin plugdev sambashare sbuild sudo
_MarkForUpload: True
dmi.bios.date: 12/06/2011
dmi.bios.vendor: LENOVO
dmi.bios.version: 8AET56WW (1.36 )
dmi.board.asset.tag: Not Available
dmi.board.name: 42405XG
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr8AET56WW(1.36):bd12/06/2011:svnLENOVO:pn42405XG:pvrThinkPadT520:rvnLENOVO:rn42405XG:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 42405XG
dmi.product.version: ThinkPad T520
dmi.sys.vendor: LENOVO

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1483325

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: trusty
Revision history for this message
Mario Splivalo (mariosplivalo) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Mario Splivalo (mariosplivalo) wrote : BootDmesg.txt

apport information

Revision history for this message
Mario Splivalo (mariosplivalo) wrote : CRDA.txt

apport information

Revision history for this message
Mario Splivalo (mariosplivalo) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Mario Splivalo (mariosplivalo) wrote : IwConfig.txt

apport information

Revision history for this message
Mario Splivalo (mariosplivalo) wrote : Lspci.txt

apport information

Revision history for this message
Mario Splivalo (mariosplivalo) wrote : Lsusb.txt

apport information

Revision history for this message
Mario Splivalo (mariosplivalo) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Mario Splivalo (mariosplivalo) wrote : ProcEnviron.txt

apport information

Revision history for this message
Mario Splivalo (mariosplivalo) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Mario Splivalo (mariosplivalo) wrote : ProcModules.txt

apport information

Revision history for this message
Mario Splivalo (mariosplivalo) wrote : PulseList.txt

apport information

Revision history for this message
Mario Splivalo (mariosplivalo) wrote : RfKill.txt

apport information

Revision history for this message
Mario Splivalo (mariosplivalo) wrote : UdevDb.txt

apport information

Revision history for this message
Mario Splivalo (mariosplivalo) wrote : UdevLog.txt

apport information

Revision history for this message
Mario Splivalo (mariosplivalo) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → New
status: New → Confirmed
Tim Gardner (timg-tpi)
Changed in linux (Ubuntu):
assignee: nobody → Andy Whitcroft (apw)
Andy Whitcroft (apw)
Changed in linux (Ubuntu):
milestone: none → ubuntu-15.08
Changed in linux (Ubuntu):
importance: Undecided → Medium
Andy Whitcroft (apw)
Changed in linux (Ubuntu):
milestone: ubuntu-15.08 → ubuntu-15.09
Andy Whitcroft (apw)
Changed in linux (Ubuntu):
milestone: ubuntu-15.09 → ubuntu-15.10
Andy Whitcroft (apw)
Changed in linux (Ubuntu):
milestone: ubuntu-15.10 → ubuntu-15.11
Andy Whitcroft (apw)
Changed in linux (Ubuntu):
milestone: ubuntu-15.11 → ubuntu-15.12
Andy Whitcroft (apw)
Changed in linux (Ubuntu):
milestone: ubuntu-15.12 → ubuntu-16.01
Andy Whitcroft (apw)
Changed in linux (Ubuntu):
milestone: ubuntu-16.01 → ubuntu-16.02
Andy Whitcroft (apw)
Changed in linux (Ubuntu):
milestone: ubuntu-16.02 → ubuntu-16.03
Norbert (nrbrtx)
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
tags: removed: trusty
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.