On Thu, Apr 02, 2015 at 11:48:46AM +0100, Filipe Manana wrote: > Test a very complex scenario for a btrfs incremental send operation where a > large directory hierarchy had many subtrees moved between parent directories, > preserving the names of some directories and inverting the parent-child > relationship between some directories (a child in the parent snapshot became > a parent, in the send snapshot, of the directory that is its parent in the > parent snapshot). > > This test made the incremental send fail with -ENOMEM because it entered an > infinite loop when building path strings that are used as operands of the > rename operations issued in the send stream. > This issue was fixed by the following linux kernel btrfs patch: > > Btrfs: incremental send, don't delay directory renames unnecessarily > > Signed-off-by: Filipe Manana <fdmanana@xxxxxxxx> Reviewed-by: David Sterba <dsterba@xxxxxxx> Tested with current master (4.0-rc6) where it fails. The out of memory failure is fixed by the mentioned kernel patch, though to fully pass the test it's needed to also include "Btrfs: incremental send, clear name from cache after orphanization" https://patchwork.kernel.org/patch/5996271/ -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html