Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected character on progress #32

Open
jrvjrv opened this issue Jul 23, 2022 · 1 comment
Open

Unexpected character on progress #32

jrvjrv opened this issue Jul 23, 2022 · 1 comment

Comments

@jrvjrv
Copy link

jrvjrv commented Jul 23, 2022

I am scrubbing an old ide ntfs disc that is not normally on this machine. I am seeing a "[" character on the progress bar. I don't see that output documented. I took a quick look through the code in progress.c, and I don't see how that could happen.

$ sudo scrub /dev/sdb1
[sudo] password for me: 
scrub: using NNSA NAP-14.1-C patterns
scrub: please verify that device size below is correct!
scrub: scrubbing /dev/sdb1 500105217024 bytes (~465GB)
scrub: random  |................................................|
scrub: random  |................................................|
scrub: 0x00    |..........................................[...  |

If it's expected it would be nice to document it.

@jrvjrv
Copy link
Author

jrvjrv commented Jul 23, 2022

It occurred to me that the extra character was not output from scrub but rather a character from the keyboard that got mixed in to the output stream when the window was inadvertently active. A quick test showed this was likely

scrub: random  |................................................|
scrub: random  |................................................|
scrub: 0x00    |..........................................[......
scrub: verify  |........................................asdf........

This is perhaps still a bug, but its character is not what I had thought. I will leave the issue active in case it is an easy fix to suppress echoing characters from the keyboard or you think it should be documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant