]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
ovl: persistent inode number for directories
authorAmir Goldstein <amir73il@gmail.com>
Thu, 16 Nov 2017 06:17:00 +0000 (07:17 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 20 Nov 2017 14:53:41 +0000 (15:53 +0100)
commitcf587d5fcca28b495f31ff1953e403bf34141458
treead129bbbfc834a88890cc9204b4e34cfa78a6425
parent1fc6dd1b72ac36d8dc25626c3c8f3e08ee484467
ovl: persistent inode number for directories

BugLink: http://bugs.launchpad.net/bugs/1728489
stat(2) on overlay directories reports the overlay temp inode
number, which is constant across copy up, but is not persistent.

When all layers are on the same fs, report the copy up origin inode
number for directories.

This inode number is persistent, unique across the overlay mount and
constant across copy up.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
(backported from commit b7a807dc2010334e62e0afd89d6f7a8913eb14ff)
Signed-off-by: Daniel Axtens <daniel.axtens@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Colin King <colin.king@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/overlayfs/dir.c