Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3324341pxb; Mon, 1 Mar 2021 07:16:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJx3NpcX38xJPi0aJ9BBBLYDnf10xtpr3FQ1D4gwcT1wYn8j+CTLe0kjgQxCqkr/GJE48Y57 X-Received: by 2002:a17:906:e119:: with SMTP id gj25mr16493556ejb.509.1614611818698; Mon, 01 Mar 2021 07:16:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614611818; cv=none; d=google.com; s=arc-20160816; b=bTZU/I6ZTIkjoNBRN+LFmaP/R9TS13NY1fTSploc4R0Bev8FtBSePEd4OchB7qK1A1 rMgO4LXZ2QtCEj0q4J//VJDifbvpM4S/0wi8nbJG8IdvXYSVApcscvlyRnUe4jOJm2G4 P/Jcbj35AoQ6+Vd8xaKGH7AyZhtLVMZylGbMoRR1IZKnbFl1FrnoPgwxqAUp0fY38Qdv pJsYPMXcdtWZofVaSK0K0INUd9ALSsK153L8BYvKgBrXNLclPhH+7j+TrjTcbYVpR3j/ ZWYBiMHjz9BrAIPC7Kii9VSEUpw1+waHt5MyeDQ/vyqHlBdXubb3IpxKNgtwaSD+8YUP gwOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:reply-to :in-reply-to:references:mime-version:dkim-signature; bh=ImBj1pMOmvUEX/iwx/8PVH76K5ZWCjQ7qaa76m84U8E=; b=yKB/VLD+YPU2wkVtad6VJPfslO0fZTgPrPKx11n6l52A79Va9r1BMttFt25Z7LCaT9 BLG5c2b4tcJMA6wTfAyhvkTuph+1F8yqyOhBSfszfyxt6IB8ixhfHiHPXkay4TpYb5gB HEgU5QSAjQ/JeODKihu2iKhTLjNiwucLasjsAbxXUUMFafkIp4NGISl3pALzofvzkyhP h0YgapKAXO93u0CJsLXOyIE/jRwNg4sYphBhvWKaeIbh65RsoyUQV3hWdxdnkN50RTh4 Yy8QMYP0vPIf9f+66NTMAnpgrE/ggtQpaR/aXrQmBWv5iXXeMco2WqCqG/vBkQjnKVab FtUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q0u20hbC; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u3si8822169ejj.14.2021.03.01.07.16.34; Mon, 01 Mar 2021 07:16:58 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=Q0u20hbC; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236957AbhCAPN5 (ORCPT + 99 others); Mon, 1 Mar 2021 10:13:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236962AbhCAPNV (ORCPT ); Mon, 1 Mar 2021 10:13:21 -0500 Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C467C06178B for ; Mon, 1 Mar 2021 07:12:40 -0800 (PST) Received: by mail-il1-x12e.google.com with SMTP id e2so14929027ilu.0 for ; Mon, 01 Mar 2021 07:12:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=ImBj1pMOmvUEX/iwx/8PVH76K5ZWCjQ7qaa76m84U8E=; b=Q0u20hbCLy1eMbvZVEGdefF/Nc4XnF6NMeSedleAEZ460TjvHLa8Xdbfzb6bmEFiIM MLP8Pl+/5Efg7DjPw2woC9w/6uavkyJ96tKqfxXnO0ey7o5wuaKIxjXVBGN4nmGgRylh wZsv5PzoRHWsGY4iZVdpob5B7Tu2hT1J73NtAQWXX3i+QkDCTtt7ES9d5dy24tBYGVaU 7fjwmMZu2nnb8wmseciMRntSIgO26kx++8DQ1H2ocWvr95OZC5OJXtmKEeAzzUJrbSJ5 I75zqiSy+mhYmfCQ1kUvCfKsV7AAiVTQ+U5QJTGS0onFdhJ9qZQRXYOA+tm8jVshckxx +6Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=ImBj1pMOmvUEX/iwx/8PVH76K5ZWCjQ7qaa76m84U8E=; b=aB/XB0v82GLkJoZAfKvpn3OO057y/0h9LAhXGXwCSJFFQhMnrMINzr/TkNz6bLOFdc +72cm1gFwHc3y4hrdoQoPQqJhnQnPxTO94B6LJMBlJ346zNPR2r0IFbCAdLMmNDabJFy 6ulGKakmWFNRybc1TNctsZ3NLqXyLQsdBh59/3+NXBI7XvuLb/qFArFV/wP5vJla9ARG 5DqgHFU96hqunKCqhY3SzdbE0tDE2wYwERcFywjE1EaRTg2F8V9n+hfNKWWrLcW02rRM 6DlNCUD1SAhNCIUT08Bl2JJyPrVEarzl32qiERZOvhdJmm4Alwf/oY+nalxEtIfk6UD4 d+5g== X-Gm-Message-State: AOAM533eCVODuZ7plxsT3aJm1G8rdo6bdcRuLrHCTPgQuPVZIDTeZWNt I0K55sv5MCPkd1Z0JtpsA2JKav21aN8r0ul4IfQMhYChXg4= X-Received: by 2002:a92:c7c2:: with SMTP id g2mr13811524ilk.209.1614611559746; Mon, 01 Mar 2021 07:12:39 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Mon, 1 Mar 2021 16:12:03 +0100 Message-ID: Subject: Re: badblocks from e2fsprogs To: "Theodore Ts'o" Cc: linux-ext4@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Mar 1, 2021 at 4:08 PM Theodore Ts'o wrote: > > On Mon, Mar 01, 2021 at 10:20:36AM +0100, Sedat Dilek wrote: > > > > root@iniza:~/DISK-HEALTH# LC_ALL=C badblocks -v -p 1 -s /dev/sdc -o > > badblocks-v-p-1-s_dev-sdc_$(uname -r).txt > > Checking blocks 0 to 976762583 > > Checking for bad blocks (read-only test): done > > Pass completed, 0 bad blocks found. (0/0/0 errors) > > > > root@iniza:~/DISK-HEALTH# ll > > badblocks-v-p-1-s_dev-sdc_5.11.0-11646.1-amd64-clang13-cfi.txt > > -rw-r--r-- 1 root root 0 28. Feb 19:33 > > badblocks-v-p-1-s_dev-sdc_5.11.0-11646.1-amd64-clang13-cfi.txt > > > > Unfortunately, the output-file is empty. > > Do I miss something (order of options for example)? > > Nope; the output file is a list of block numbers for which badblocks > found problems. > > > The whole single-pass badblocks run took approx. 3 hours - last I > > looked 50% was 01:26 [hh:mm]. > > On stdout (and in output-file) - no summary of the total-time. > > > > Is that possible to have: > > > > Pass completed, 0 bad blocks found. (0/0/0 errors) + > > The output file was designed for use to be fed into mke2fs (via the -l > option) or e2fsck (via the -l or -L options). So we can't change the > format of the output file without breaking those programs. > > You will note that the output is in the badblocks standard output: > > Pass completed, 0 bad blocks found. (0/0/0 errors) > > So there should be no confusion in the mind of the person running the > badblocks program. > OK, I see. So I misunderstood the -o option. Use time or linux-perf to see the used total-time. - Sedat -