On Fr, Aug 02, 2013 at 10:27:25 +0400, Andrey Borzenkov wrote:
The only case when rename returns EBUSY is when directory is mount point. systemd creates private tmp directories if service has PrivateTmp=yes:
Ugh, this seems to be hardwired to /var/tmp. No way to move it to /tmp or something?
bor@opensuse:~> grep -rlw PrivateTmp /usr/lib/systemd/system /usr/lib/systemd/system/rsyncd.service /usr/lib/systemd/system/pesign.service /usr/lib/systemd/system/haveged.service /usr/lib/systemd/system/rtkit-daemon.service
Yes, that seems to be the root of the problem.
bor@opensuse:~> systemctl status haveged haveged.service - Haveged Entropy Gathering Daemon Loaded: loaded (/usr/lib/systemd/system/haveged.service; enabled) Active: active (running) since Sat, 2013-07-27 11:13:45 MSK; 6 days ago Main PID: 672 (haveged) CGroup: name=systemd:/system/haveged.service └ 672 /usr/sbin/haveged -w 1024 -v 0 -F
bor@opensuse:~> sudo grep /var/tmp /proc/672/mountinfo 73 44 253:1 /var/tmp/systemd-private-xztGlQ /var/tmp rw,relatime shared:56 master:1 - ext4 /dev/mapper/system-root rw,commit=600,data=ordered bor@opensuse:~>
How comes that I don't see this in /proc/mounts? And lsof don't show it, too.
So /var/tmp cannot be renamed because it mounted - in one of namespaces.
But when I stop haveged, I _still_ can't rename, although grep /var/tmp /proc/*/mountinfo don't show anything. So there must be something else. -- Josef Wolf jw@raven.inka.de -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org