Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934419AbeAJPmy (ORCPT + 1 other); Wed, 10 Jan 2018 10:42:54 -0500 Received: from mail-qt0-f176.google.com ([209.85.216.176]:33332 "EHLO mail-qt0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933299AbeAJPmw (ORCPT ); Wed, 10 Jan 2018 10:42:52 -0500 X-Google-Smtp-Source: ACJfBosGbKrrV+Yaze9HCLoIuOi9La1+2kPKRHwQ8Mva54QWFiOHzVzJGMczbU/GPB6JA9y7MtnjPw== Date: Wed, 10 Jan 2018 10:42:50 -0500 From: Josef Bacik To: Masami Hiramatsu Cc: Alexei Starovoitov , Josef Bacik , rostedt@goodmis.org, mingo@redhat.com, davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, ast@kernel.org, kernel-team@fb.com, daniel@iogearbox.net, linux-btrfs@vger.kernel.org, darrick.wong@oracle.com, Josef Bacik , Akinobu Mita Subject: Re: [PATCH bpf-next v3 5/5] error-injection: Support fault injection framework Message-ID: <20180110154249.kqkbxzq77wgjwu7p@destiny> References: <151557939382.6629.18074658376309258555.stgit@devbox> <151557954526.6629.17668573917001919432.stgit@devbox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <151557954526.6629.17668573917001919432.stgit@devbox> User-Agent: NeoMutt/20170714 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Wed, Jan 10, 2018 at 07:19:05PM +0900, Masami Hiramatsu wrote: > Support in-kernel fault-injection framework via debugfs. > This allows you to inject a conditional error to specified > function using debugfs interfaces. > > Here is the result of test script described in > Documentation/fault-injection/fault-injection.txt > > =========== > # ./test_fail_function.sh > 1+0 records in > 1+0 records out > 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.0227404 s, 46.1 MB/s > btrfs-progs v4.4 > See http://btrfs.wiki.kernel.org for more information. > > Label: (null) > UUID: bfa96010-12e9-4360-aed0-42eec7af5798 > Node size: 16384 > Sector size: 4096 > Filesystem size: 1001.00MiB > Block group profiles: > Data: single 8.00MiB > Metadata: DUP 58.00MiB > System: DUP 12.00MiB > SSD detected: no > Incompat features: extref, skinny-metadata > Number of devices: 1 > Devices: > ID SIZE PATH > 1 1001.00MiB /dev/loop2 > > mount: mount /dev/loop2 on /opt/tmpmnt failed: Cannot allocate memory > SUCCESS! > =========== > > > Signed-off-by: Masami Hiramatsu Reviewed-by: Josef Bacik Thanks, Josef