xfs
[Top] [All Lists]

Re: [PATCH v2] xfstests btrfs/020: test device replace on RO btrfs

To: Eryu Guan <eguan@xxxxxxxxxx>
Subject: Re: [PATCH v2] xfstests btrfs/020: test device replace on RO btrfs
From: David Sterba <dsterba@xxxxxxx>
Date: Thu, 24 Oct 2013 12:17:30 +0200
Cc: xfs@xxxxxxxxxxx, linux-btrfs@xxxxxxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1382546683-454-1-git-send-email-eguan@xxxxxxxxxx>
Mail-followup-to: dsterba@xxxxxxx, Eryu Guan <eguan@xxxxxxxxxx>, xfs@xxxxxxxxxxx, linux-btrfs@xxxxxxxxxxxxxxx
References: <1382527446-16053-1-git-send-email-eguan@xxxxxxxxxx> <1382546683-454-1-git-send-email-eguan@xxxxxxxxxx>
Reply-to: dsterba@xxxxxxx
User-agent: Mutt/1.5.21 (2012-12-30)
On Thu, Oct 24, 2013 at 12:44:43AM +0800, Eryu Guan wrote:
> +_cleanup()
> +{
> +     cd /

Using root as temporary directory?

> +     rm -f $tmp.*
> +     $UMOUNT_PROG $loop_mnt
> +     _destroy_loop_device $loop_dev1
> +     losetup -d $loop_dev2 >/dev/null 2>&1
> +     _destroy_loop_device $loop_dev3
> +     rm -rf $loop_mnt
> +     rm -f $fs_img1 $fs_img2 $fs_img3
> +}

<Prev in Thread] Current Thread [Next in Thread>