diff options
author | Javier Martinez Canillas <[email protected]> | 2022-06-10 09:57:18 +0200 |
---|---|---|
committer | akpm <[email protected]> | 2022-06-16 19:58:22 -0700 |
commit | 019a0c9e377c9f7bd477a0742706d93cdddaee4d (patch) | |
tree | c66a546659d7eef25fff09f5e85430c4e21008f1 /scripts/gdb/linux/mm.py | |
parent | 1bb1a07afad97303f14b8d1b319b03f1f01a0091 (diff) |
fat: add a vfat_rename2() and make existing .rename callback a helper
Patch series "fat: add support for the renameat2 RENAME_EXCHANGE flag", v6.
The series adds support for the renameat2 system call RENAME_EXCHANGE flag
(which allows to atomically replace two paths) to the vfat filesystem
code.
There are many use cases for this, but we are particularly interested in
making possible for vfat filesystems to be part of OSTree [0] deployments.
Currently OSTree relies on symbolic links to make the deployment updates
an atomic transactional operation. But RENAME_EXCHANGE could be used [1]
to achieve a similar level of robustness when using a vfat filesystem.
Patch #1 is just a preparatory patch to introduce the RENAME_EXCHANGE
support, patch #2 moves some code blocks in vfat_rename() to a set of
helper functions, that can be reused by tvfat_rename_exchange() that's
added by patch #3 and finally patch #4 adds some kselftests to test it.
This patch (of 4):
Currently vfat only supports the RENAME_NOREPLACE flag which is handled by
the virtual file system layer but doesn't support the RENAME_EXCHANGE
flag.
Add a vfat_rename2() function to be used as the .rename callback and move
the current vfat_rename() handler to a helper. This is in preparation for
implementing the RENAME_NOREPLACE flag using a different helper function.
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Javier Martinez Canillas <[email protected]>
Acked-by: OGAWA Hirofumi <[email protected]>
Cc: Christian Kellner <[email protected]>
Cc: Peter Jones <[email protected]>
Cc: Chung-Chiang Cheng <[email protected]>
Cc: Lennart Poettering <[email protected]>
Cc: Alexander Larsson <[email protected]>
Cc: Colin Walters <[email protected]>
Cc: Muhammad Usama Anjum <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/mm.py')
0 files changed, 0 insertions, 0 deletions