Message ID | 1eb59407c06a9c6a51a854bbce458208e3e53fea.1738161075.git.anand.jain@oracle.com (mailing list archive) |
---|---|
State | New |
Headers | show
Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 36BD715B102; Wed, 29 Jan 2025 15:20:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.177.32 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738164027; cv=fail; b=JvlaVnoXaJ34dA0Cp1EUTZA4c3nTTlmjN0ulKR/4GRwDgmRBjjUAOUJmvYwZ51j4MTSJsKwsdjKwRP1f7xSryuwyMqjKSOOZTr3WR2Pt5ePNg1rNfVwAUGCSTIS2YCqNEmOOhrWpqYiWAa+1l8p9pyVoFehaFI0IO3nEy4q/fGU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738164027; c=relaxed/simple; bh=sgJiu9ugshyaxE1tYy/oMpUqOdkIVhfWQ8Mxt2dWwYM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=FbNQue+elX8aFEE/cS3TyfaZHkqQ+P45CYOFDg6Zk9T5o2BSQbulwE3RK84tZeyzkD4VScf2+F0kRVt+dh9wQtsHKgT3mVPHXoYRLZ8WBK1xnkWiOavLY+LZMDWHqURETkqgbYRWqpHJF6wcVKB0oZfbkBgMsxksI/BbGuH4wh4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=Fcsrddzo; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=F4vqnvAS; arc=fail smtp.client-ip=205.220.177.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="Fcsrddzo"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="F4vqnvAS" Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50TFHRnM000945; Wed, 29 Jan 2025 15:20:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=foZg87m0YStHqg0or9PvBHL8O8Bzf9n5ZOJOCwSX3vo=; b= Fcsrddzo1RAUjp6UEgmEYa0e8zcgP9PpKtuqQWWUF3s1SReqmB9X9TS/+I7oV/Dy Pmwl1bZE6FDyZgp5pshZHXEBfmlWvOAAgMXNBLo/SJkqhKqq+UBJJNq80P8QUIUc 22+Rr3/1Eb1zYrmFHZ3yqbgUT35T/UwXnqhvOfxmbl0DhQRNFJhy/rIno6zzqDFN yedKG73DKDHjmcXBp4FrPBhyd+/KCwAWu0gLVPB/fkcDS6K6bBIF+Ux7q59pRMCt GZHUb/YxEpIpqhPugLkiYbefaCExaqV/vHuZMMSfmrGrKhb3UlhgPv/kyBg9GaFD qiL7BCb6K68F2fCzG8x2WA== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 44fn2ug8qu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 29 Jan 2025 15:20:24 +0000 (GMT) Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 50TETeuU036366; Wed, 29 Jan 2025 15:20:23 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2042.outbound.protection.outlook.com [104.47.55.42]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 44cpd9tpks-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 29 Jan 2025 15:20:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=biRVnOOTa811d6jCpilBjffkNgmTMf0M+NQIYwdqTZEafeAI4RfO8KFz8jw9thXS5wuJZG3pcvfxRP1fk8qJYyuVDY9VeMt1puSJ2PIE8mUFJVOS7nEQshT9Tr6kGTawxveccHezYHTs0Ylgtbw/AyXB3CRMHb/91dGLXici2UE5oMlp44ZeFGqnpLOmRsoI8ZP+etRSm2q2vmiEmwUxQWEUF63/UnbZw+C3l0VwB0IB3jNlTTfgoD5KQjUdOhtUnzPZaD3I+XmHImzfDgj5y2PzVUc5yjmJjQnXT6kNQoJdkIqC1JKzlYD+14lcV0Z0zYGhSanhlTH+mE0zzhn+mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=foZg87m0YStHqg0or9PvBHL8O8Bzf9n5ZOJOCwSX3vo=; b=axlj8qiJcldzwUEIMNTfXhAPnJ+25WDx/5kvaaPzc7yvGBLI3ZdtwAmKVDQ1ZGNYOLbxJg203UlWeYwOnm6XkxVERxG2aXXZa7sj+x3Uabjb4V0/gJ8UfzZWh5k79djTjzKsCzuuI5DPXjytBWUDahohbcAFF0gr+y+nh8ZCN2Pq2rTAAAKI8AuJy9ZCt4EGKmWT0CV9y20o4alxSaGAuZz30aNr5gumYVpEdSFh4W+StUofkvQAKMgPIZy8uO91d1JNYd47EFPysipn1X1lYf4Sp5k3vPEcQEiJJZLVUmWDRa6aoVAm6Gy0itCY4sd8WyrDAJxifTetAKxqIh+FMQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=foZg87m0YStHqg0or9PvBHL8O8Bzf9n5ZOJOCwSX3vo=; b=F4vqnvAS0/fO+ocgj+Fj0KB9dbb7YhLylaktGLDLrqw7Yazl/Dwl9+u0HGLBIhyDiHTaBgffP3NWuAn+E9iDrSEug5r7E21DLFB3dY/xUKwOxgkLku3Oswwxci3sCXm3moGfLtAS852QAnxhJvUwxDKsvsgZXlT64em3toOoGyw= Received: from PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) by DS7PR10MB4959.namprd10.prod.outlook.com (2603:10b6:5:3a0::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8398.20; Wed, 29 Jan 2025 15:20:19 +0000 Received: from PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::fea:df00:2d94:cb65]) by PH0PR10MB5706.namprd10.prod.outlook.com ([fe80::fea:df00:2d94:cb65%3]) with mapi id 15.20.8377.021; Wed, 29 Jan 2025 15:20:19 +0000 From: Anand Jain <anand.jain@oracle.com> To: fstests@vger.kernel.org Cc: linux-btrfs@vger.kernel.org Subject: [PATCH 1/3] fstests: common/rc: set_fs_sysfs_attr: redirect errors to stdout Date: Wed, 29 Jan 2025 23:19:52 +0800 Message-ID: <1eb59407c06a9c6a51a854bbce458208e3e53fea.1738161075.git.anand.jain@oracle.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <cover.1738161075.git.anand.jain@oracle.com> References: <cover.1738161075.git.anand.jain@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR04CA0011.apcprd04.prod.outlook.com (2603:1096:4:197::10) To PH0PR10MB5706.namprd10.prod.outlook.com (2603:10b6:510:148::10) Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: <linux-btrfs.vger.kernel.org> List-Subscribe: <mailto:linux-btrfs+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-btrfs+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR10MB5706:EE_|DS7PR10MB4959:EE_ X-MS-Office365-Filtering-Correlation-Id: e5f1a11b-fce6-4382-8316-08dd40787134 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014; X-Microsoft-Antispam-Message-Info: ewyhgidAf2DP7Z4lLvSXauKFqyw4xHfGLmdmWDzXawFzFFCJa4qyPPXMS7xNS9vVcZ1OR36doKXBC9m14EPKb+h6/AHE4M2d7qAxCT694d/87liEkuay663aJFmMQFYLyad5vFNv5g7rkeS/0NDCc4pm07yHX/qBDs11CsfLGu/S2BAo56el0dkX3LsVLKsP6dBgSiyNcMf0oDpiNiRms66DULICxZVhbFRLS8UeX4rlUQ2WsjkTDAHkFqQYnsoauGxVPHbGmbSL4X6D/61+YLIw6AKGGg3/WUb87yPzJrXKxk47FxtOXDBOzUiiWyMYagrH8rEUdPkJ5Dkzvnc752VqiOEjhNTBsjdjpTS6hZPip7OdBvehy34E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ANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR10MB5706.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: sNUJ1v7MVwzbN/VBFsosnuAH7YaaVFgX8sW+TOpJ34QMHzaz6TeGR+Ck0jg52xkPqLujc4hTXEjsWCgkJcKcHGoqJKN4jy6Tyv05h/KTXDTF7tNmS/42bzlXM3AC5Z+3VAxT+3ufpMWurbSfH5bwuMxxBiIvuvxr5y22OxhkeeYwlFXoHCXTPoMvFDRsM0fRpt+sNk+NGrfs+QpZ0BLiBsamrkGLEw9AZ8CIHm/0lTVKc2xdHbjeO78Geygj0a4jn9nRFsPAXHRl6yraYub/FzgE+ZxJ2T2e/tZ44CN/nb/vALXDa2BrOh8DoIq+kjmuZsDvJq6/g9zT5W0Bg0om3ZqKu0nV+glTlibK74vVAQwrSgVvokZCQPDW9kpHqbmpLNMmS05GFIvj+yHlE/i71Vus6YQUfhvFjLSC5luQ30v0y4JgDQ4jUv3M2XfyMIn3cSrV+f2i9mPeY4FVRjj9DqgTlN2CU4IePtx3yhxx9iwqUY9yL8aejiai9rrFPN1bUJc+db0e4cIR8/W9TzRXeJI94FD8HHqGm5jzXWsjoSEZIV5l4g0yYp3XxaXSEgI7ihG4BFrM08FbG+45HzRZMIXKZBpQLCPt0pn5HehZYo77UhDhIMUM0sslK1P1GcbgrzQdgOQQKkOd6xejI766HpQWKlrYX9lLIAdD7tMjXnxPayja58Nq2T/6ZhVYPfFVKfMensl6EqUux+QzmUTi0cqN/M6UyatDVz3PUdAtQs2KpS1/sv24D3NiI1qcsYMli51TDCNFOAr5r2KYcLO9qH5SJOsWv2hSTDaNxcBsBwUpkI7efdTvlfpGCbnQ45wd3XooJEnk3PasaactrXoLUyjK6uphp/wwmux/WmXsOR/5VeLQvEnZPBEBvu5+o2I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ZkMX3odFdCpFsKy8uGSJqiz3CXxnL5MWLQ9K6cG6rPdzGJzqBkeeUrOvAHpXMb3ThPnVBZRNHEzj7rgN6MlEzgXJoXkW04zJDVReHuGNeNUoaZU1fZSUixibtFUTpvr2wR0R0UBCLXATHMICbGJOHIDc6gxpNa45qr63quR0pe3QocACC0yDUybdk4ZhbrAgfZfdy6W9V1oI+Dem1RatB3JGwKVDh7HIGY8EFU+Tc2pJSqfYSrFDwbVIw2m9xNe+R9NyHCAAMu1TwTFbKC7tUly5ARGg1434mUTBiSuV3P0VK4AKy2ru2jcEr7MEOm7RfJ/qHpKLIZE= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: e5f1a11b-fce6-4382-8316-08dd40787134 X-MS-Exchange-CrossTenant-AuthSource: PH0PR10MB5706.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2025 15:20:19.7789 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: KX8LAHR6Ksl8vet+sb0j0PvNywnMhFw6OUmu7i/agvZ2CS4KVk1JTGzegItJEobus3xFIaeXgdo7IO/kLtIQKA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR10MB4959 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-29_02,2025-01-29_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 bulkscore=0 malwarescore=0 mlxlogscore=999 suspectscore=0 spamscore=0 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2411120000 definitions=main-2501290123 X-Proofpoint-ORIG-GUID: aJlmuW-vmQ6TbSjF152CkaC9U5f3U1Q- X-Proofpoint-GUID: aJlmuW-vmQ6TbSjF152CkaC9U5f3U1Q- |
Series |
fstests: btrfs: add test case to validate sysfs input arguments
|
expand
|
diff --git a/common/rc b/common/rc index a3ee09d54cf0..2c4621bad5d0 100644 --- a/common/rc +++ b/common/rc @@ -5082,7 +5082,8 @@ _set_fs_sysfs_attr() local dname=$(_fs_sysfs_dname $dev) - echo "$content" > /sys/fs/${FSTYP}/${dname}/${attr} + echo "echo "$content" 2>&1 > /sys/fs/${FSTYP}/${dname}/${attr}" >> $seqres.full + echo "$content" 2>&1 > /sys/fs/${FSTYP}/${dname}/${attr} | tee -a $seqres.full } # Print the content of /sys/fs/$FSTYP/$DEV/$ATTR
Redirect sysfs write errors to stdout as a preparatory patch to enable testing of expected sysfs write failures. Also, log the executed sysfs write command and its failure if any to seqres.full for better debugging and traceability. Signed-off-by: Anand Jain <anand.jain@oracle.com> --- common/rc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)