diff options
| author | Baolin Liu <liubaolin@kylinos.cn> | 2026-09-23 14:02:42 +0800 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-10-12 20:49:43 +0900 |
| commit | 1ef8ccd9c7bb5b156fc92d12bdd481c1819d873a (patch) | |
| tree | 0f0d53fc32cf64a03aa3626d304108ff1ca967fc /tools/lib/python | |
| parent | e09aaff15d524b84bdfd9aa62d9c0295b94b2456 (diff) | |
| download | linux-next-1ef8ccd9c7bb5b156fc92d12bdd481c1819d873a.tar.gz linux-next-1ef8ccd9c7bb5b156fc92d12bdd481c1819d873a.zip | |
ntfs: restore EA attributes when an update fails
Creating or replacing an EA can leave EA data and information out of
sync if a later update fails. Existing deletion rollback ignores its own
errors, and creation changes metadata before preparing the new list.
Prepare the complete new list while retaining both original attributes.
Update EA data and information only after preparation succeeds, restore
both on failure, and publish the cached presence state only on success.
Keep structure errors as EUCLEAN and preserve operation errors. Mark the
volume erroneous and shut it down if either restoration fails.
This handles synchronous failures; it does not make the two updates
atomic across power loss or guarantee restoration on a failing device.
Signed-off-by: Baolin Liu <liubaolin@kylinos.cn>
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
