summaryrefslogtreecommitdiff
path: root/scripts/dummy-tools/python3
diff options
context:
space:
mode:
authorguolingxing <guolingxing@tju.edu.cn>2026-10-15 09:59:01 +0000
committerDavid Sterba <dsterba@suse.com>2026-10-30 23:14:37 +0100
commit45a686dff6b91c3667cd8188d3a02c69f62f4d00 (patch)
treee6aee54625608cd6ae07c6da6d3691f509b6f2e0 /scripts/dummy-tools/python3
parent4172be965c2ce887ebfb1117c634a68555be8c11 (diff)
btrfs: verity: propagate orphan insertion errors when enabling verity
btrfs_begin_enable_verity() ignores the return value of btrfs_orphan_add() and unconditionally returns 0. If orphan insertion fails, btrfs_orphan_add() aborts the transaction, but the generic fs-verity code still proceeds with Merkle tree construction because the begin_enable_verity callback reported success. Return the error so that fs-verity stops immediately instead of continuing after the initialization failure. The transaction is already aborted by btrfs_orphan_add() and the handle is released by btrfs_end_transaction(), so no additional cleanup is needed. Fixes: 705242538ff3 ("btrfs: verity metadata orphan items") Signed-off-by: guolingxing <guolingxing@tju.edu.cn> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/dummy-tools/python3')
0 files changed, 0 insertions, 0 deletions