Miklos Szeredi a6c6065511 ovl: redirect on rename-dir
Current code returns EXDEV when a directory would need to be copied up to
move.  We could copy up the directory tree in this case, but there's
another, simpler solution: point to old lower directory from moved upper
directory.

This is achieved with a "trusted.overlay.redirect" xattr storing the path
relative to the root of the overlay.  After such attribute has been set,
the directory can be moved without further actions required.

This is a backward incompatible feature, old kernels won't be able to
correctly mount an overlay containing redirected directories.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2016-12-16 11:02:56 +01:00
..
2014-01-24 10:55:21 -06:00
2015-07-23 20:59:40 +02:00
2015-07-23 20:59:40 +02:00
2015-02-16 17:56:04 -08:00
2015-10-29 12:57:48 -05:00
2012-05-10 11:45:31 +01:00
2011-11-04 12:01:48 -07:00
2016-08-02 15:39:14 -04:00
2016-12-16 11:02:56 +01:00
2015-05-18 11:23:07 +02:00
2013-07-25 12:34:15 +02:00
2014-12-29 15:40:18 -07:00
2016-03-09 15:33:06 -07:00
2016-09-19 09:38:25 +10:00