]> git.baikalelectronics.ru Git - kernel.git/commit
overlayfs: add statfs support
authorAndy Whitcroft <apw@canonical.com>
Thu, 23 Oct 2014 22:14:38 +0000 (00:14 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Thu, 23 Oct 2014 22:14:38 +0000 (00:14 +0200)
commit5741dd0efd51f14f9dedf3894b8b0b32b98bbec5
tree5cce84e37ebeb3c0a73395af34081e080d51f0fa
parent9c3bbfb6fae86afe4816c470cdc835f9a3673bc1
overlayfs: add statfs support

Add support for statfs to the overlayfs filesystem.  As the upper layer
is the target of all write operations assume that the space in that
filesystem is the space in the overlayfs.  There will be some inaccuracy as
overwriting a file will copy it up and consume space we were not expecting,
but it is better than nothing.

Use the upper layer dentry and mount from the overlayfs root inode,
passing the statfs call to that filesystem.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/overlayfs/super.c