xfs
[Top] [All Lists]

[PATCH] snapshot, defragment and raid test cases for btrfs

To: linux-fsdevel@xxxxxxxxxxxxxxx, linux-btrfs@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx
Subject: [PATCH] snapshot, defragment and raid test cases for btrfs
From: Anand Jain <Anand.Jain@xxxxxxxxxx>
Date: Fri, 05 Aug 2011 15:59:51 +0800
Cc: Chris Mason <chris.mason@xxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9

Hi,

 Attached is the patch for the xfstests, which adds snapshot,
 defragment and volume management test cases for the btrfs
 (257, 258 and 259 respectively).

 This introduces a new user variable 'DISK_POOL' which should
 be set to disks for the raid tests.

 An example of usage of these tests is as below.
------------
[root@localhost xfstests]# cat local.config
TEST_DEV="/dev/sdd"
TEST_DIR=/btrfs
SCRATCH_DEV="/dev/sde"
SCRATCH_MNT=/btrfs1
DISK_POOL="/dev/sdf /dev/sdg"
[root@localhost xfstests]#

[root@localhost xfstests]# ./check 257 258 259
FSTYP -- btrfs
PLATFORM -- Linux/i686 localhost 3.0.0-rc6+
MKFS_OPTIONS -- /dev/sde
MOUNT_OPTIONS -- -o context=system_u:object_r:nfs_t:s0 /dev/sde /btrfs1

257 8s
258 3s
259 33s
Ran: 257 258 259
Passed all 3 tests
----------------

 Thank you.

Anand

Attachment: 0001-Adding-257-258-259-to-test-snapshot-defragment-and-r.patch
Description: Text Data

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