xfs
[Top] [All Lists]

Re: [PATCH 2/3] xfstests: Add new standard loop handling functions

To: Tomas Racek <tracek@xxxxxxxxxx>
Subject: Re: [PATCH 2/3] xfstests: Add new standard loop handling functions
From: Rich Johnston <rjohnston@xxxxxxx>
Date: Tue, 26 Feb 2013 09:32:17 -0600
Cc: Eric Sandeen <sandeen@xxxxxxxxxxx>, <lczerner@xxxxxxxxxx>, <xfs@xxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <2102910196.6066385.1360050965047.JavaMail.root@xxxxxxxxxx>
References: <2102910196.6066385.1360050965047.JavaMail.root@xxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Thunderbird/13.0.1
Add _create_loop_device and _destroy_loop_device to uniformly handle
loopback devices.

Signed-off-by: Tomas Racek <tracek@xxxxxxxxxx>


_create_loop_device()
{
        dev=`losetup -f --show $file` || _fail "Cannot associate $file with
        $dev"
        echo $dev
}


Looks good.
Reviewed-by: Rich Johnston <rjohnston@xxxxxxx>


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