]> git.proxmox.com Git - pve-container.git/commit
snapshot: replace global sync with a namespace sync
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 11 Feb 2016 08:26:36 +0000 (09:26 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 11 Feb 2016 10:56:26 +0000 (11:56 +0100)
commit34fdb3d74423d905c0033332323d65afce64e685
tree5a70dce53b64cbb56c59b7cc3889451a1b764c68
parentf067e7baf80f2881e06933356c4c9217a5f408c1
snapshot: replace global sync with a namespace sync

snapshot_create() called did a global 'sync' after freeze()
which syncs everything including all other containers and
the host. So if you want to snapshot container A while
container B tries to write to a broken NFS mount the
snapshot will hang in that sync call.
Instead we now enter the container's mount namespace and do
a syncfs() on all of its mountpoints.
src/PVE/LXC.pm