← Back to team overview

kernel-packages team mailing list archive

[Bug 1483325] [NEW] mount -t overlayfs misinforms when nonexisting directories are provided

 

Public bug reported:

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.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1483325

Title:
  mount -t overlayfs misinforms when nonexisting directories are
  provided

Status in linux package in Ubuntu:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1483325/+subscriptions


Follow ups