overlayfs v1: renaming existing file uses chardev whiteout (should be symlink)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
High
|
Andy Whitcroft |
Bug Description
On a recent vivid livecd, after I rename a file that exists in the lower filesystem, the whiteout entry is visible.
root@ubuntu:~# ls -l /etc/fstab
-rw-r--r-- 1 root root 63 Jan 13 11:56 /etc/fstab
root@ubuntu:~# mv /etc/fstab /etc/fstab.renamed
root@ubuntu:~# ls -l /etc/fstab*
c--------- 1 root root 0, 0 Jan 13 19:57 /etc/fstab
-rw-r--r-- 1 root root 63 Jan 13 11:56 /etc/fstab.renamed
root@ubuntu:~#
It still happens if I trigger a copy-up first by editing the file.
Files that exist only in the upper filesystem (created after booting the livecd) work properly.
On utopic, everything works properly. I have not tested a 3.17 kernel.
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: linux-image-
ProcVersionSign
Uname: Linux 3.18.0-8-generic x86_64
ApportVersion: 2.15.1-0ubuntu2
Architecture: amd64
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/hwC0D0', '/dev/snd/
CasperVersion: 1.347
Date: Tue Jan 13 19:42:41 2015
IwConfig:
eth0 no wireless extensions.
lo no wireless extensions.
LiveMediaBuild: Ubuntu 15.04 "Vivid Vervet" - Alpha amd64 (20150113)
Lsusb:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 046d:c31c Logitech, Inc. Keyboard K120 for Business
Bus 002 Device 002: ID 413c:3012 Dell Computer Corp. Optical Wheel Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: To Be Filled By O.E.M. To Be Filled By O.E.M.
ProcEnviron:
TERM=rxvt-
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcFB: 0 nouveaufb
ProcKernelCmdLine: initrd=
PulseList:
Error: command ['pacmd', 'list'] failed with exit code 1: Home directory not accessible: Permission denied
No PulseAudio daemon running, or not running as session daemon.
RelatedPackageV
linux-
linux-
linux-firmware 1.140
RfKill:
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 06/07/2010
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 080015
dmi.board.
dmi.board.name: M61PMP/M61PMP-K
dmi.board.vendor: FOXCONN
dmi.board.version: 1.0
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: To Be Filled By O.E.M.
dmi.product.
dmi.sys.vendor: To Be Filled By O.E.M.
description: | updated |
Changed in linux (Ubuntu): | |
importance: | Medium → High |
assignee: | nobody → Andy Whitcroft (apw) |
milestone: | none → ubuntu-15.01 |
summary: |
- overlayfs_v1: renaming existing file uses chardev whiteout (should be + overlayfs v1: renaming existing file uses chardev whiteout (should be symlink) |
Not true of all directories, actually. /root is special somehow. (detach_mounts is suspicious... probably the initramfs mounted the real root at /root, or something like that?) Renaming /mnt or /opt works properly and no whiteout is left behind.