Commit c864a31f authored by Pavel Emelyanov's avatar Pavel Emelyanov

Revert "Fix AUFS pathname handling when branch is not exposed"

This reverts commit 490ca718 to the 2749d9e6 fixes the problem
the other (proper) way.

Conflicts:
	sysfs_parse.c
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 2749d9e6
......@@ -272,7 +272,6 @@ err:
*/
int fixup_aufs_vma_fd(struct vma_area *vma)
{
char *file;
char path[PATH_MAX];
int len;
......@@ -298,9 +297,8 @@ int fixup_aufs_vma_fd(struct vma_area *vma)
sprintf(vma->aufs_fpath, "%s/%s", opts.root, &path[2]);
}
pr_debug("Saved AUFS paths %s and %s\n", vma->aufs_rpath, vma->aufs_fpath);
file = vma->aufs_fpath;
if (stat(file, vma->vmst) < 0) {
if (stat(vma->aufs_fpath, vma->vmst) < 0) {
pr_perror("Failed stat on map %"PRIx64" (%s)",
vma->e->start, vma->aufs_fpath);
return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment