Files
scoutfs/kmod/src
Zach Brown a61b8d9961 Fix renaming into root directory
The VFS performs a lot of checks on renames before calling the fs
method.  We acquire locks and refresh inodes in the rename method so we
have to duplciate a lot of the vfs checks.

One of the checks involves loops with ancestors and subdirectories.  We
missed the case where the root directory is the destination and doesn't
have any parent directories.  The backref walker it calls returns
-ENOENT instead of 0 with an empty set of parents and that error bubbled
up to rename.

The fix is to notice when we're asking for ancestors of the one
directory that can't have ancestors and short circuit the test.

Signed-off-by: Zach Brown <zab@versity.com>
2023-03-08 11:00:59 -08:00
..
2022-09-28 10:36:10 -07:00
2022-10-14 14:03:35 -07:00
2020-08-26 14:39:12 -07:00
2022-12-12 14:59:22 -08:00
2022-12-12 14:59:22 -08:00
2022-12-12 14:59:22 -08:00
2018-04-04 09:15:27 -05:00
2017-12-20 12:21:13 -08:00
2023-01-10 09:34:52 -08:00
2022-12-06 10:31:31 -08:00
2023-03-08 11:00:59 -08:00
2022-10-27 14:32:06 -07:00
2018-01-26 11:59:47 -08:00
2021-08-24 09:11:40 -07:00
2021-08-24 09:11:40 -07:00
2022-03-09 11:12:36 -08:00
2017-08-30 10:38:00 -07:00
2022-12-12 14:59:22 -08:00
2020-10-29 14:15:33 -07:00
2022-12-06 10:31:31 -08:00
2022-12-02 12:28:13 -08:00
2022-03-11 15:28:58 -08:00
2022-01-24 09:40:08 -08:00
2016-02-05 14:12:14 -08:00
2021-06-17 09:36:00 -07:00
2022-12-02 12:28:13 -08:00
2022-10-27 14:16:07 -07:00
2022-09-28 10:36:10 -07:00
2019-08-20 15:52:13 -07:00
2021-08-24 09:12:20 -07:00
2022-07-06 15:16:19 -07:00
2022-03-11 15:28:58 -08:00
2022-10-14 14:03:35 -07:00
2022-10-14 14:03:35 -07:00
2019-05-21 11:33:26 -07:00
2019-05-21 11:33:26 -07:00
2022-12-12 14:59:22 -08:00
2023-01-17 14:33:27 -08:00
2020-10-29 14:15:33 -07:00
2020-10-29 14:15:33 -07:00
2020-11-30 13:35:44 -08:00
2019-04-12 10:54:07 -07:00
2023-01-17 14:33:27 -08:00
2022-12-12 14:59:22 -08:00
2021-07-07 14:13:14 -07:00
2021-03-01 09:50:00 -08:00
2021-03-01 09:50:00 -08:00
2018-07-27 09:50:21 -07:00
2018-07-27 09:50:21 -07:00
2021-01-14 13:42:22 -08:00
2022-09-28 10:36:10 -07:00
2022-09-28 10:11:24 -07:00