]> asedeno.scripts.mit.edu Git - linux.git/commit
ovl: don't traverse automount points
authorMiklos Szeredi <mszeredi@suse.cz>
Mon, 22 Jun 2015 11:53:48 +0000 (13:53 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Mon, 22 Jun 2015 11:53:48 +0000 (13:53 +0200)
commita6f15d9a756571babbb2b2cd4fdd1b64a5de232b
tree6801447580f7813846615bbddd6dfaac45dfc684
parentb953c0d234bc72e8489d3bf51a276c5c4ec85345
ovl: don't traverse automount points

NFS and other distributed filesystems may place automount points in the
tree.  Previoulsy overlayfs refused to mount such filesystems types (based
on the existence of the .d_automount callback), even if the actual export
didn't have any automount points.

It cannot be determined in advance whether the filesystem has automount
points or not.  The solution is to allow fs with .d_automount but refuse to
traverse any automount points encountered.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/overlayfs/super.c