btrfs: regression test for ro snapshot creation

Regression test for a btrfs issue where creation of readonly snapshots caused
the filesystem to get into an inconsistent state.

This regression was introduced in the 3.17 kernel and fixed by reverting the
following linux kernel commit:

     Btrfs: race free update of commit root for ro snapshots
     9c3b306e1c9e6be4be09e99a8fe2227d1005effc

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Filipe Manana
2014-11-10 13:03:43 +11:00
committed by Dave Chinner
parent 481c28f52f
commit 8c7c07e79b
3 changed files with 88 additions and 0 deletions
+1
View File
@@ -80,3 +80,4 @@
075 auto quick subvol
076 auto quick
077 auto quick
078 auto