From: "Theodore Ts'o" <tytso@mit.edu>
To: Sedat Dilek <sedat.dilek@gmail.com>
Cc: linux-ext4@vger.kernel.org
Subject: Re: badblocks from e2fsprogs
Date: Mon, 1 Mar 2021 10:08:26 -0500 [thread overview]
Message-ID: <YD0DaqIbAf0T2tw2@mit.edu> (raw)
In-Reply-To: <CA+icZUXzjAniVZMzS5ePNa6HrjWL6ZrpAgzWufy74zHSyN+urQ@mail.gmail.com>
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) + <total-time_of_run>
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
next prev parent reply other threads:[~2021-03-01 15:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-01 9:20 badblocks from e2fsprogs Sedat Dilek
2021-03-01 15:08 ` Theodore Ts'o [this message]
2021-03-01 15:12 ` Sedat Dilek
2021-03-01 15:34 ` Theodore Ts'o
2021-03-01 15:42 ` Sedat Dilek
2021-03-05 11:59 ` Lukas Czerner
2021-03-05 12:21 ` Sedat Dilek
2021-03-05 12:48 ` Lukas Czerner
2021-03-05 12:53 ` Sedat Dilek
2021-03-05 15:55 ` Theodore Ts'o
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YD0DaqIbAf0T2tw2@mit.edu \
--to=tytso@mit.edu \
--cc=linux-ext4@vger.kernel.org \
--cc=sedat.dilek@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox