From patchwork Tue Mar 29 12:17:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eryu Guan X-Patchwork-Id: 8686381 Return-Path: X-Original-To: patchwork-fstests@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7C8A49F44D for ; Tue, 29 Mar 2016 12:17:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AA7BF20251 for ; Tue, 29 Mar 2016 12:17:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CCEC82013D for ; Tue, 29 Mar 2016 12:17:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756788AbcC2MRd (ORCPT ); Tue, 29 Mar 2016 08:17:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57057 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751658AbcC2MRd (ORCPT ); Tue, 29 Mar 2016 08:17:33 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 8FA157108D for ; Tue, 29 Mar 2016 12:17:32 +0000 (UTC) Received: from localhost (dhcp-12-128.nay.redhat.com [10.66.12.128]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u2TCHVnQ018084; Tue, 29 Mar 2016 08:17:32 -0400 From: Eryu Guan To: fstests@vger.kernel.org Cc: Eryu Guan Subject: [PATCH] generic/244: avoid creating too large random ID Date: Tue, 29 Mar 2016 20:17:19 +0800 Message-Id: <1459253839-17197-1-git-send-email-eguan@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Tue, 29 Mar 2016 12:17:32 +0000 (UTC) Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP ppc64 hosts are generating too large random IDs like 725294314141253632, which causes all sorts of errors in test. Fix it by using format "-t uI" for 'int' size and it works fine on all platforms. Signed-off-by: Eryu Guan --- TBH, I'm not quite clear why "-t uL" behaves differently on ppc64 (even ppc64le works fine), and I didn't dig too deep into it. "-t uI" just works :) tests/generic/244 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/generic/244 b/tests/generic/244 index eb5a5ab..0b50438 100755 --- a/tests/generic/244 +++ b/tests/generic/244 @@ -83,7 +83,7 @@ ITERATIONS=100 # A few extra on the off chance we get dups for I in `seq 1 $(($ITERATIONS+10))`; do - ID=`od -N 4 -t uL -An /dev/urandom | tr -d " "` + ID=`od -N 4 -t uI -An /dev/urandom | tr -d " "` echo $ID >> $tmp.1 done