| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH] xfstests: btrfs/004, fix filefrag filter for files with 1 block only |
| From: | Filipe David Borba Manana <fdmanana@xxxxxxxxx> |
| Date: | Fri, 18 Apr 2014 04:34:23 +0100 |
| Cc: | linux-btrfs@xxxxxxxxxxxxxxx, jbacik@xxxxxx, Filipe David Borba Manana <fdmanana@xxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=CD+sbRaKlU60p2Nu2pz2gdbl1bEVkfQxoRe6hGwQn6g=; b=IANmlqymJ99G2cUxPADTBsTlxGnDd5sFQGIhRmizYvrDiTSXvvKsFMEzWTOanbmuqE DH4XoMgu4stUwer4opuvpqgtESYFeTu3J1T8B7A8vGFjAst0TPxTqsG2uR6hqrRKgTBV ulYjP5X6XL2hPQKeZOeRLqubi7VWUBmcJgSvw9kVOtYlzf+aO54t7RxgbEidARnf4qiu We6jl3vR4pDvoUIEAIfu5N0zg9AZoi9Hzyi1DZ9UbGl7GI1KTzOCeyMDjNoga5x36U+a NtX/y2tzLbfmA3KwNG5grRVdCYsmeWaNh3J1CBLe+0A6ovoZpGM5ViHzzlkiFREVzUd0 Ak9g== |
If the file consists of a single block, then filefrag mentions
'1 block of ...', and the filter expected 'blocks of ...'.
Example:
$ echo qwerty > foobar
$ filefrag -v foobar
Filesystem type is: ef53
File size of foobar is 7 (1 block of 4096 bytes)
ext: logical_offset: physical_offset: length: expected: flags:
0: 0.. 0: 0.. 0: 1:
unknown,delalloc,eof
foobar: 1 extent found
Signed-off-by: Filipe David Borba Manana <fdmanana@xxxxxxxxx>
---
tests/btrfs/004 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/btrfs/004 b/tests/btrfs/004
index 211d8bc..670e1c2 100755
--- a/tests/btrfs/004
+++ b/tests/btrfs/004
@@ -58,7 +58,7 @@ _require_command "/usr/sbin/filefrag"
rm -f $seqres.full
FILEFRAG_FILTER='
- if (/blocks of (\d+) bytes/) {
+ if (/blocks? of (\d+) bytes/) {
$blocksize = $1;
next
}
--
1.9.1
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH v2 10/10] xfs: isolate xfs_qm_quotacheck to its source file, Jeff Liu |
|---|---|
| Next by Date: | [PATCH] xfstests: btrfs/004, fix failure with inlined file extents, Filipe David Borba Manana |
| Previous by Thread: | [PATCH v2 10/10] xfs: isolate xfs_qm_quotacheck to its source file, Jeff Liu |
| Next by Thread: | [PATCH] xfstests: btrfs/004, fix failure with inlined file extents, Filipe David Borba Manana |
| Indexes: | [Date] [Thread] [Top] [All Lists] |