Miklos Szeredi
d377c5eb54
ovl: don't remove non-empty opaque directory
...
When removing an opaque directory we can't just call rmdir() to check for
emptiness, because the directory will need to be replaced with a whiteout.
The replacement is done with RENAME_EXCHANGE, which doesn't check
emptiness.
Solution is just to check emptiness by reading the directory. In the
future we could add a new rename flag to check for emptiness even for
RENAME_EXCHANGE to optimize this case.
Reported-by: Vincent Batts <vbatts@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Tested-by: Jordi Pujol Palomer <jordipujolp@gmail.com>
Fixes: 263b4a0fee43 ("ovl: dont replace opaque dir")
Cc: <stable@vger.kernel.org> # v4.0+
2015-05-14 10:04:44 +02:00
..
2015-04-26 17:22:07 -07:00
2015-04-26 17:22:07 -07:00
2015-04-26 17:22:07 -07:00
2015-04-15 15:06:57 -04:00
2015-04-15 15:06:57 -04:00
2015-04-26 17:22:07 -07:00
2015-04-26 17:22:07 -07:00
2015-05-08 20:59:02 -07:00
2015-04-15 15:06:59 -04:00
2015-04-26 17:22:07 -07:00
2015-04-26 17:22:07 -07:00
2015-04-15 15:06:57 -04:00
2015-05-05 17:10:11 -07:00
2015-04-26 17:22:07 -07:00
2015-04-15 15:06:57 -04:00
2015-01-18 01:03:45 -05:00
2015-04-15 15:06:57 -04:00
2015-05-06 10:57:37 -07:00
2015-04-15 15:06:57 -04:00
2015-04-15 15:06:57 -04:00
2015-02-22 11:38:41 -05:00
2015-04-26 17:22:07 -07:00
2015-04-26 17:22:07 -07:00
2015-05-03 18:23:53 -07:00
2015-05-04 14:15:16 -07:00
2015-04-26 17:22:07 -07:00
2015-04-15 15:06:57 -04:00
2014-10-13 17:52:21 +01:00
2015-04-15 15:06:57 -04:00
2015-04-26 17:22:07 -07:00
2015-04-26 17:22:07 -07:00
2015-04-26 17:22:07 -07:00
2015-04-26 17:22:07 -07:00
2015-04-15 15:06:57 -04:00
2015-04-15 15:06:57 -04:00
2015-04-26 17:22:07 -07:00
2015-04-15 15:06:57 -04:00
2014-11-18 10:15:29 +01:00
2015-01-19 15:59:58 -05:00
2015-04-26 17:22:07 -07:00
2015-04-26 17:22:07 -07:00
2015-04-15 15:06:57 -04:00
2015-04-21 16:16:02 -04:00
2015-04-15 15:06:57 -04:00
2015-04-15 15:06:57 -04:00
2015-04-15 15:06:57 -04:00
2015-04-26 17:33:59 -07:00
2015-04-26 17:22:07 -07:00
2015-05-05 17:10:11 -07:00
2015-03-12 18:46:08 -07:00
2015-04-15 15:06:57 -04:00
2015-05-05 17:10:11 -07:00
2015-04-15 15:06:57 -04:00
2015-05-14 10:04:44 +02:00
2015-04-26 17:22:07 -07:00
2015-04-26 17:22:07 -07:00
2015-04-15 15:06:57 -04:00
2015-04-26 17:22:07 -07:00
2015-04-15 15:06:57 -04:00
2015-04-26 17:22:07 -07:00
2015-04-11 22:29:40 -04:00
2015-04-15 15:06:57 -04:00
2015-03-25 13:27:57 +01:00
2015-04-15 15:06:57 -04:00
2015-02-03 12:48:43 -05:00
2015-04-26 17:22:07 -07:00
2015-04-26 17:22:07 -07:00
2015-04-15 15:06:57 -04:00
2015-04-26 17:22:07 -07:00
2015-04-16 23:27:56 -04:00
2015-02-20 04:03:58 -05:00
2014-11-19 13:01:20 -05:00
2015-04-14 16:49:05 -07:00
2014-12-13 12:42:51 -08:00
2015-04-26 17:22:07 -07:00
2014-12-13 12:42:51 -08:00
2015-04-24 15:45:28 -04:00
2015-04-14 16:49:01 -07:00
2015-01-20 14:02:58 -07:00
2015-04-03 23:21:34 +02:00
2014-10-31 17:48:54 -04:00
2015-04-11 22:29:39 -04:00
2015-04-26 17:22:07 -07:00
2015-04-15 15:05:28 -04:00
2015-04-24 15:45:28 -04:00
2015-02-12 18:54:09 -08:00
2015-02-17 14:34:52 -08:00
2015-02-13 21:21:40 -08:00
2015-04-19 13:46:21 -07:00
2015-01-08 15:10:52 -08:00
2015-04-11 22:29:43 -04:00
2015-04-17 09:04:07 -04:00
2015-04-09 11:39:55 -05:00
2015-03-17 12:23:32 -04:00
2015-04-24 15:45:28 -04:00
2015-02-22 11:38:42 -05:00
2015-02-10 14:30:30 -08:00
2015-04-10 15:08:35 -07:00
2015-04-14 16:49:05 -07:00
2015-04-15 15:06:58 -04:00
2015-04-17 09:04:12 -04:00
2015-04-14 10:22:29 -07:00
2015-01-25 23:17:29 -05:00
2015-05-09 00:12:48 -04:00
2015-05-09 11:55:50 -05:00
2015-04-15 15:06:58 -04:00
2015-04-24 07:08:41 -07:00
2015-04-15 15:06:58 -04:00
2015-04-02 20:34:20 -05:00
2015-04-09 11:39:55 -05:00
2015-04-15 15:06:59 -04:00
2015-02-05 02:45:00 -05:00
2015-04-11 22:29:46 -04:00
2014-10-31 17:48:54 -04:00
2015-02-12 18:54:12 -08:00
2015-02-13 21:21:39 -08:00
2014-11-05 14:13:23 -05:00
2015-05-06 09:27:41 -06:00
2015-04-15 15:06:59 -04:00
2015-04-14 16:49:03 -07:00
2015-02-05 02:45:00 -05:00
2014-11-05 14:13:23 -05:00
2014-11-19 13:01:26 -05:00