Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5184482pxv; Tue, 20 Jul 2021 22:30:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy94sBN70CrWTJ1LmtbCs4Mc/TJUk+0/4BBgBbrRhadYHu1Ew/Efzene2cdBTJWCwM50Nd3 X-Received: by 2002:a17:906:af0e:: with SMTP id lx14mr37202943ejb.54.1626845421795; Tue, 20 Jul 2021 22:30:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626845421; cv=none; d=google.com; s=arc-20160816; b=bHRZJ9gzVKI0WI6j4bcFtp7vdveAFbVHG8/T2Db0lsKbMdOMQ15R4XEs1XA761rcvb E1G8/W16IpqcOMyWDuna8jKe+nSTCa8o3I5dRzUCvjlJjvyG0ukUsTFtxCcPtKcyj8Mj 1CUnnJ77KdfzBaWOM0dEZYsZQp4wMqu6Vs6ep+ILHVIHgygQaRn13uTj7TCMeVZ2eFZ3 7XeU8hHlHSblau090Ui5ikwkbU9WXe4wdARhaGlOZ5Yxh2A5mpLn9lX6TmZIujuUJKB4 siRXhl8DJtc9CmN5/tHFgPEJhUfObIqQCiHx3WulACIagOVX4+NWURFVIL3NZlGQC5bC HA6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fvM/PnRjCvDKCI6UBB2Ggn5mKmT6PMY9L8YjfIE0Nis=; b=SFCnrRh4F2dl8xjsQBK99298QdNkuFR4fIBwVpOs+vTwxzh0aN2etY2G+3EhZiSvZm qaeZt+BdNpUimHasO1jKhlwub8mMtJiMnq5lJ+VXQDJdjKkB9e5sIFkJZFrZ5G4J7riZ SdJ3EUgxUNm5ZGzP5yloA1zV33NUcCnQXdxcz4ruWKxqg7PT9wsdNpUwX3STuqn21p3H UTwsXzyHGn5MmqR6ikfXPpL9BYjemVYDg41md3hG9c3kPWq2I7+RYWUmVHPYwoU1etxG C83t5+oLpOsWcTuS5z42fABXRjScLOXC2X0h4HJ8rcRdkVTcD5c4ddUjUjEWU8Mst3EP mPZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=Pvx7zDSI; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a21si27282044edy.79.2021.07.20.22.29.58; Tue, 20 Jul 2021 22:30:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=Pvx7zDSI; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231493AbhGUEsK (ORCPT + 99 others); Wed, 21 Jul 2021 00:48:10 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:54004 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232468AbhGUErr (ORCPT ); Wed, 21 Jul 2021 00:47:47 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16L5PhS4074824; Wed, 21 Jul 2021 01:28:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=fvM/PnRjCvDKCI6UBB2Ggn5mKmT6PMY9L8YjfIE0Nis=; b=Pvx7zDSIi4p/Wsc29ilBMv7RlE5Hhbzxx8QlhXhf2jwAk35JKzLSlJWlyzcXRUSE2CB8 15xfkt120kUgh5iowz8Iuo+1y5jLcrvC1U77mH3+QBF/5+cD+nc8Sv3KuT3YZNBERgIg o048TPKpi/7oKfQGobiG3ajRPtWwMENFU8MtjQ3e9o/FJXo+GyPmT4zKEcmJoTxu9Vft DypqrzcI7LV0SdFTdtHYIfMQZZZQ2zeKhQvgCTT9b9JkEgprjYU2RtUNvPtntQBZHoV4 worO3XbO5lr5vxgYknUSZFTQIi8lR2BKi4++QIXUcNdsCfzVsIi0FRev7FpS1imbAlcv Xw== Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0b-001b2d01.pphosted.com with ESMTP id 39xde4r0yn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Jul 2021 01:28:22 -0400 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 16L5DhhQ015359; Wed, 21 Jul 2021 05:28:20 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma06ams.nl.ibm.com with ESMTP id 39vng71a4d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Jul 2021 05:28:20 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 16L5SIcG16777626 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 21 Jul 2021 05:28:18 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1350FAE045; Wed, 21 Jul 2021 05:28:18 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8980DAE051; Wed, 21 Jul 2021 05:28:17 +0000 (GMT) Received: from localhost (unknown [9.85.82.121]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 21 Jul 2021 05:28:17 +0000 (GMT) From: Ritesh Harjani To: fstests@vger.kernel.org Cc: linux-ext4@vger.kernel.org, "Theodore Ts'o" , "Darrick J . Wong" , Ritesh Harjani Subject: [PATCHv2 8/9] common/attr: Cleanup end of line whitespaces issues Date: Wed, 21 Jul 2021 10:58:01 +0530 Message-Id: X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: S5uGauHQG8QBSO9FfVLSRDstWdJAXgMG X-Proofpoint-GUID: S5uGauHQG8QBSO9FfVLSRDstWdJAXgMG X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-07-21_02:2021-07-21,2021-07-21 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 impostorscore=0 adultscore=0 malwarescore=0 phishscore=0 mlxlogscore=999 spamscore=0 mlxscore=0 lowpriorityscore=0 clxscore=1015 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2107210025 Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org This patch clears the end of line whitespace issues in this file. Mostly since many kernel developers also keep this editor config to clear any end of line whitespaces on file save. Reviewed-by: Theodore Ts'o Reviewed-by: Darrick J. Wong Signed-off-by: Ritesh Harjani --- common/attr | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/common/attr b/common/attr index 42ceab92..d3902346 100644 --- a/common/attr +++ b/common/attr @@ -59,10 +59,10 @@ _acl_setup_ids() j=1 for(i=1; i<1000000 && j<=3;i++){ if (! (i in ids)) { - printf "acl%d=%d;", j, i; + printf "acl%d=%d;", j, i; j++ } - } + } }'` } @@ -101,7 +101,7 @@ _getfacl_filter_id() _acl_ls() { _ls_l -n $* | awk '{ print $1, $3, $4, $NF }' | _acl_filter_id -} +} # create an ACL with n ACEs in it # @@ -128,7 +128,7 @@ _filter_aces() BEGIN { FS=":" while ( getline 0 ) { - idlist[$1] = $3 + idlist[$1] = $3 } } /^user/ { if ($2 in idlist) sub($2, idlist[$2]); print; next} @@ -180,17 +180,17 @@ _require_attrs() { local args local nsp - + if [ $# -eq 0 ]; then args="user" else args="$*" fi - + [ -n "$ATTR_PROG" ] || _notrun "attr command not found" [ -n "$GETFATTR_PROG" ] || _notrun "getfattr command not found" [ -n "$SETFATTR_PROG" ] || _notrun "setfattr command not found" - + for nsp in $args; do # # Test if chacl is able to write an attribute on the target @@ -204,14 +204,14 @@ _require_attrs() touch $TEST_DIR/syscalltest $SETFATTR_PROG -n "$nsp.xfstests" -v "attr" $TEST_DIR/syscalltest > $TEST_DIR/syscalltest.out 2>&1 cat $TEST_DIR/syscalltest.out >> $seqres.full - + if grep -q 'Function not implemented' $TEST_DIR/syscalltest.out; then _notrun "kernel does not support attrs" fi if grep -q 'Operation not supported' $TEST_DIR/syscalltest.out; then _notrun "attr namespace $nsp not supported by this filesystem type: $FSTYP" fi - + rm -f $TEST_DIR/syscalltest.out done } -- 2.31.1