| To: | <xfs@xxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH 2/2] xfstests: 219: ignore duplicates reported by repquota |
| From: | "Alex Elder" <aelder@xxxxxxx> |
| Date: | Sun, 10 Jan 2010 13:26:32 -0600 |
| Thread-index: | AcqSKtETz0bH2Sl3SJSXwj2RlO60bw== |
| Thread-topic: | [PATCH 2/2] xfstests: 219: ignore duplicates reported by repquota |
(Re-sending; I misaddressed it the first time.)
Arrange to ignore duplicate entries reported by the repquota command.
This can happen if an id is used more than once (such as when two user
names are assigned the same uid).
Do this here by simply dropping any reported entries whose id number
has already been seen in the output.
Signed-off-by: Alex Elder <aelder@xxxxxxx>
---
219 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Index: b/219
===================================================================
--- a/219
+++ b/219
@@ -85,7 +85,8 @@ test_accounting()
$here/src/lstat64 $file | head -3 | filter_scratch
done
- repquota -$type -s -n $SCRATCH_MNT | grep -v "^#0" | filter_scratch
+ repquota -$type -s -n $SCRATCH_MNT | grep -v "^#0" | filter_scratch |
+ awk '/^#/ { if (! seen[$1]) { seen[$1]++; next; } } { print }'
}
# real QA test starts here
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [XFS updates] XFS development tree branch, for-linus, updated. v2.6.30-rc4-34575-gfd45e478, xfs |
|---|---|
| Next by Date: | Re: [PATCH 2/2] xfstests: 219: ignore duplicates reported by repquota, Christoph Hellwig |
| Previous by Thread: | [XFS updates] XFS development tree branch, for-linus, updated. v2.6.30-rc4-34575-gfd45e478, xfs |
| Next by Thread: | Re: [PATCH 2/2] xfstests: 219: ignore duplicates reported by repquota, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |