From: Miao Xie Date: Thu, 24 Jul 2014 03:37:06 +0000 (+0800) Subject: Btrfs: Fix the problem that the replace destroys the seed filesystem X-Git-Tag: omap-fixes-against-v3.17-rc3~41^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff61d17c6324d1b483fbbc5144f09668c24ff60c;p=pandora-kernel.git Btrfs: Fix the problem that the replace destroys the seed filesystem The seed filesystem was destroyed by the device replace, the reproduce method is: # mkfs.btrfs -f # btrfstune -S 1 # mount # btrfs device add # umount # mount # btrfs replace start -f # umount # mount It is because we erase the super block on the seed device. It is wrong, we should not change anything on the seed device. Signed-off-by: Miao Xie Reviewed-by: David Sterba Signed-off-by: Chris Mason --- Reading git-diff-tree failed