diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2015-10-18 13:44:41 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2015-11-02 09:35:06 +0100 |
commit | a1126f3673f60814609491d16c863a3a91ec078f (patch) | |
tree | a9286c2756733feb0c5ee73ab42ba4a369b74541 /tests/misc-tests | |
parent | 30b72caa2e640bcfa15535f3d28385149c63939f (diff) |
Btrfs-progs: fix btrfs-convert rollback to check ROOT_BACKREF
Btrfs has changed to delete subvolume/snapshot asynchronously, which
means that after umount itself, if we've already deleted 'ext2_saved',
rollback can still be completed.
So this adds a check for ROOT_BACKREF before checking ROOT_ITEM since
ROOT_BACKREF is immediately not in the btree after
ioctl(BTRFS_IOC_SNAP_DESTROY) returns.
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
[ updated error messages ]
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tests/misc-tests')
0 files changed, 0 insertions, 0 deletions