caeadb2db2
mount: refuse RENAME_EXCHANGE instead of renaming over the target ( #12921 )
...
* mount: refuse RENAME_EXCHANGE instead of renaming over the target
renameat2(a, b, RENAME_EXCHANGE) asks for the two names to be swapped
atomically. Rename let the flag through and went on as a plain rename, so
a was moved over b, b's content was gone, and the call reported success.
The filer's rename moves one entry and cannot swap two, so the mount now
answers EINVAL, which is what renameat2(2) returns for a flag the file
system does not support, and callers fall back on it.
RenameWhiteout was 3, which is RENAME_NOREPLACE|RENAME_EXCHANGE; the flag
is 1<<2. Both values, and any other flag the mount does not implement,
now get the same EINVAL (3 answered ENOTSUP, 4 already EINVAL).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com >
* mount: trim the rename flag comments
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
---------
Co-authored-by: MapleWhiteZZZ <18653045+MapleWhiteZZZ@users.noreply.github.com >
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com >
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com >
2026-11-24 12:24:39 -08:00
..
2026-11-22 23:07:14 -08:00
2026-11-18 10:51:31 -08:00
2026-02-20 18:42:00 -08:00
2026-08-25 01:28:50 -07:00
2026-11-18 14:11:11 -08:00
2026-11-18 14:11:11 -08:00
2026-11-12 16:28:47 -08:00
2026-11-12 16:28:47 -08:00
2026-11-13 21:56:44 -08:00
2026-11-13 21:56:44 -08:00
2026-11-13 12:34:58 -08:00
2026-11-14 01:13:37 -08:00
2026-11-14 01:13:37 -08:00
2026-11-14 11:11:01 -08:00
2026-10-12 09:42:52 +08:00
2026-11-14 19:34:43 -08:00
2026-11-18 10:51:31 -08:00
2026-11-20 12:49:05 -08:00
2026-11-20 12:49:05 -08:00
2026-10-29 16:06:57 -07:00
2026-11-14 10:47:33 -08:00
2026-10-29 16:06:57 -07:00
2026-11-24 10:32:18 -08:00
2026-08-04 16:42:33 -07:00
2026-11-22 23:07:14 -08:00
2026-03-30 18:25:11 -07:00
2026-10-11 20:18:22 +08:00
2026-11-18 10:51:31 -08:00
2026-11-14 11:11:01 -08:00
2026-09-01 13:21:02 -07:00
2026-11-23 14:19:08 -08:00
2026-11-23 14:19:08 -08:00
2026-11-24 10:32:18 -08:00
2026-11-22 10:11:42 -08:00
2026-11-18 10:51:31 -08:00
2026-07-23 17:44:02 -07:00
2026-11-12 08:57:42 -08:00
2026-11-12 08:57:42 -08:00
2026-06-16 09:16:24 -07:00
2026-06-16 09:16:24 -07:00
2026-11-18 10:51:31 -08:00
2026-04-18 20:03:34 -07:00
2026-04-18 20:03:34 -07:00
2026-07-23 17:44:02 -07:00
2026-07-23 17:44:02 -07:00
2026-04-18 21:42:36 -07:00
2026-04-18 20:18:38 -07:00
2026-04-18 20:18:38 -07:00
2026-04-18 20:18:38 -07:00
2026-07-23 17:44:02 -07:00
2026-11-21 10:38:38 -08:00
2026-04-18 20:18:38 -07:00
2026-04-19 00:53:12 -07:00
2026-04-18 20:03:45 -07:00
2026-04-18 20:03:45 -07:00
2026-10-22 18:38:33 -07:00
2026-04-18 20:03:45 -07:00
2026-08-03 21:20:26 -07:00
2026-10-26 22:02:13 -07:00
2026-11-22 23:07:14 -08:00
2026-11-22 23:07:14 -08:00
2026-11-22 23:07:14 -08:00
2026-11-14 01:13:37 -08:00
2026-11-24 10:32:18 -08:00
2026-11-24 10:32:18 -08:00
2026-08-03 14:47:20 -07:00
2026-08-03 21:55:59 -07:00
2026-08-03 01:07:49 -07:00
2026-06-18 17:38:28 -07:00
2026-06-18 17:38:28 -07:00
2026-11-18 11:01:30 -08:00
2026-11-18 11:01:30 -08:00
2026-11-14 10:47:33 -08:00
2026-11-14 11:11:01 -08:00
2026-11-13 21:56:44 -08:00
2026-01-06 10:50:54 -08:00
2026-01-06 10:50:54 -08:00
2026-01-06 10:50:54 -08:00
2026-11-13 12:27:15 -08:00
2026-08-28 14:56:50 -07:00
2026-11-12 16:28:47 -08:00
2026-09-12 20:06:25 -07:00
2026-08-03 01:07:49 -07:00
2026-11-22 23:07:14 -08:00
2026-04-16 00:44:24 -07:00
2026-11-19 00:04:03 -08:00
2026-11-24 10:40:58 -08:00
2026-11-24 10:40:58 -08:00
2026-10-12 09:42:52 +08:00
2026-08-07 17:48:42 -07:00
2026-08-07 12:11:27 -07:00
2026-10-12 09:42:52 +08:00
2026-10-29 11:32:57 -07:00
2026-10-29 11:32:57 -07:00
2026-11-14 19:34:43 -08:00
2026-11-24 10:32:18 -08:00
2026-10-29 16:06:57 -07:00
2026-08-28 14:56:50 -07:00
2026-04-16 11:37:52 -07:00
2026-11-24 10:32:18 -08:00
2026-10-26 22:02:13 -07:00
2026-09-08 10:50:41 -07:00
2026-11-13 12:02:42 -08:00
2026-11-14 19:34:43 -08:00
2026-11-24 10:40:58 -08:00
2026-11-18 10:58:05 -08:00
2026-11-24 10:32:18 -08:00
2026-11-24 10:32:18 -08:00
2026-10-10 23:39:29 +08:00
2026-11-23 00:30:55 -08:00
2026-11-14 19:34:43 -08:00
2026-11-14 19:34:43 -08:00
2026-11-22 10:34:36 -08:00
2026-11-23 00:30:55 -08:00
2026-11-14 19:34:43 -08:00
2026-11-14 01:13:37 -08:00
2026-01-07 13:06:08 -08:00
2026-11-23 14:19:08 -08:00
2026-11-22 23:07:14 -08:00
2026-11-13 21:56:44 -08:00
2026-10-29 00:55:47 -07:00
2026-11-20 12:49:05 -08:00
2026-11-12 16:15:08 -08:00
2026-11-12 16:15:08 -08:00
2026-11-18 10:50:28 -08:00
2026-11-22 23:07:14 -08:00
2026-07-23 17:44:02 -07:00
2026-11-13 16:14:22 -08:00
2026-11-23 00:30:55 -08:00
2026-11-18 14:13:40 -08:00
2026-08-03 21:20:26 -07:00
2026-10-26 22:02:13 -07:00
2026-01-07 13:06:08 -08:00
2026-10-11 20:18:22 +08:00
2026-10-29 16:06:57 -07:00
2026-10-29 16:06:57 -07:00
2026-11-24 12:24:39 -08:00
2026-11-22 10:34:36 -08:00
2026-11-24 12:24:39 -08:00
2026-07-27 14:28:29 -07:00
2026-10-11 20:18:22 +08:00
2026-10-11 20:18:22 +08:00
2026-11-20 12:49:05 -08:00
2026-11-20 12:49:05 -08:00
2026-11-20 12:49:05 -08:00
2026-04-15 14:06:06 -07:00
2026-11-22 23:07:14 -08:00
2026-11-22 23:07:14 -08:00
2026-10-12 09:42:52 +08:00
2026-08-03 14:47:20 -07:00
2026-01-06 10:50:54 -08:00
2026-11-12 16:28:47 -08:00
2026-11-22 10:11:42 -08:00
2026-11-24 10:32:18 -08:00
2026-11-20 12:49:05 -08:00
2026-11-20 12:49:05 -08:00
2026-10-11 20:18:22 +08:00
2026-11-22 10:11:42 -08:00
2026-11-24 10:40:58 -08:00
2026-11-24 10:40:58 -08:00