]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: add test to verify xattr replace operations are atomic
authorFilipe Manana <fdmanana@suse.com>
Mon, 10 Nov 2014 07:06:23 +0000 (18:06 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 10 Nov 2014 07:06:23 +0000 (18:06 +1100)
commit66769056ba50ecf40f026ccde341ee2452593f1f
treeed688a05d3d4f6ef41bb12d3c0e2c09660ead303
parente62dbeae4b91da7d0f1bd7bbfecccb628e8b823c
generic: add test to verify xattr replace operations are atomic

This test verifies that replacing a xattr's value is an atomic
operation. This is motivated by an issue in btrfs where replacing
a xattr's value wasn't an atomic operation, it consisted of
removing the old value and then inserting the new value in a
btree. This made readers (getxattr and listxattrs) not getting
neither the old nor the new value during a short time window.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/generic/037 [new file with mode: 0755]
tests/generic/037.out [new file with mode: 0644]
tests/generic/group