Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3320659pxb; Mon, 1 Mar 2021 07:12:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJzX9umX2HLPSdJ4if7s+lCrncjc7rltIi2imJEn5N0yv9l+ykQzn8NZ4OHacqli2vPd3ysJ X-Received: by 2002:a17:906:789:: with SMTP id l9mr15999968ejc.161.1614611550100; Mon, 01 Mar 2021 07:12:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614611550; cv=none; d=google.com; s=arc-20160816; b=itBor2ecKmUCG16k4BVHXif7AjTSi7Kg6fSOIH0MxRSoHQA5zl6RtHIRWxAQsCobRp gTpo4YM3iefg62uKufehV2X/JinuQiKeaKW6BuacQbeDyXQoeq4BAGod9Kgi3Sm+1xyk r8yKAYa+UYGBQP25FJv7FvvN5j4lUCAlx3UkvZQASKMkej7yJqb/s/6LfYQsVRaNkTeY rTmoUGKgsv/lavVACuSCra7ONBLUaOHjXPMUCag8HMnHpJbZXJUwcR2g1sg6xeWi4XJ1 6v962eNxzm05M9j4Q+ktw1cZ+WjDb/fkicGXxta+9NHMAtqc6ELMGeM7hVnDYnkTn5NH nhrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=frP/ajaviDeuzop9YtPqYjs716qBehJAlX9wQmqTRwI=; b=hySpDPE06ZWDl80hpZIxz+5MYg0KxfOtRI1Haiyu9635/4U918F08gDhgoo0PLYUda NJ3Z6Ifmy4dDEzQu8cYQoGxzn98jlZzTRdCGS4G5MlEMGFobjq+AgE2wYJd9cJBEbwLd 5C/9hR4c6qBhgLqzA6csYrN/wHuIJ0SFlvwDdmocjxbVf7U/xk8+/ZqUbHHmun5P4dS2 /tejxKg72y/VBD4Xx/0uceYCGrUcDOyl/iLlXSA8GUz8nskqZLPCve6LSxYV+IW4Z0fX jZZpL7eqcTxzZ+AU4DAxzpnVxlQujecGTvksZuqopnKy6zjXib93EXG4cy6ZDBm0nprO NqwQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bg8si11672367ejb.155.2021.03.01.07.11.53; Mon, 01 Mar 2021 07:12:30 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236811AbhCAPJW (ORCPT + 99 others); Mon, 1 Mar 2021 10:09:22 -0500 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:56407 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S236914AbhCAPJR (ORCPT ); Mon, 1 Mar 2021 10:09:17 -0500 Received: from cwcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 121F8Qrh006719 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 1 Mar 2021 10:08:27 -0500 Received: by cwcc.thunk.org (Postfix, from userid 15806) id 9DABB15C3A88; Mon, 1 Mar 2021 10:08:26 -0500 (EST) Date: Mon, 1 Mar 2021 10:08:26 -0500 From: "Theodore Ts'o" To: Sedat Dilek Cc: linux-ext4@vger.kernel.org Subject: Re: badblocks from e2fsprogs Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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. Regards, - Ted