]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: warn instead of error if d_type is not supported
authorVivek Goyal <vgoyal@redhat.com>
Fri, 1 Jul 2016 14:02:44 +0000 (10:02 -0400)
committerMiklos Szeredi <mszeredi@redhat.com>
Sun, 3 Jul 2016 07:39:31 +0000 (09:39 +0200)
commit7c54d651632030c61630ac9e5522f1c924d31635
treee980523614efa528bce39c26a1ceacc90cd3e0b9
parentef4e435c1a0bb20ef3d4d3715d94be051950482b
ovl: warn instead of error if d_type is not supported

overlay needs underlying fs to support d_type. Recently I put in a
patch in to detect this condition and started failing mount if
underlying fs did not support d_type.

But this breaks existing configurations over kernel upgrade. Those who
are running docker (partially broken configuration) with xfs not
supporting d_type, are surprised that after kernel upgrade docker does
not run anymore.

https://github.com/docker/docker/issues/22937#issuecomment-229881315

So instead of erroring out, detect broken configuration and warn
about it. This should allow existing docker setups to continue
working after kernel upgrade.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Fixes: 1f6b8f1ccb45 ("ovl: Ensure upper filesystem supports d_type")
Cc: <stable@vger.kernel.org> 4.6
fs/overlayfs/super.c