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

Rich Johnston rjohnston at sgi.com
Tue Feb 26 09:32:17 CST 2013


Add _create_loop_device and _destroy_loop_device to uniformly handle
loopback devices.

Signed-off-by: Tomas Racek <tracek at redhat.com>

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

Looks good.
Reviewed-by: Rich Johnston <rjohnston at sgi.com>




More information about the xfs mailing list