HNHacker News
TopNewBestAskShowJobs

rbh42

14 karma · joined September 12, 2014

submissionscomments
rbh42··on A man who walked around the world
There's also Jesper Kenn Olsen who ran around the world twice; first eastwards, then southwards/northwards: https://en.wikipedia.org/wiki/Jesper_Olsen_(runner)
rbh42··on Why do roots of polynomials tend to have absolute value 1?
If you define polynomials by their roots instead of by their coefficients, then the roots tend to have wherever absolute values you tend to choose!
rbh42··on Everything you need to know about the Shellshock Bash bug
From "man perlfunc" unser "system":

If there is only one scalar argument, the argument is checked for shell metacharacters, and if there are any, the entire argument is passed to the system's command shell for parsing (this is "/bin/sh -c" on Unix platforms, but varies on other platforms). If there are no shell metacharacters in the argument, it is split into words and passed directly to "execvp", which is more efficient.

So your example does not invoke the shell.

rbh42··on My experience with using cp to copy 432 million files (39 TB)
Tested by time (I'm the OP).
rbh42··on My experience with using cp to copy 432 million files (39 TB)
I'm the OP, so I can shred a bit of light on that: Dell's support suggested a file-level copy when I asked them what they recommended (but I'm not entirely sure they understood the implications). Also, time was not a big issue.

I did keep a log file with the output from cp, and it clearly identified the filenames for the inodes with bad blocks. Actually, I'm not sure how dd would handle bad blocks.

rbh42··on My experience with using cp to copy 432 million files (39 TB)
Glad someone noticed it (I'm the OP). Reading the drives systematically is called "Patrol Read" and is often enabled by default, but you can tweak the parameters.
rbh42··on My experience with using cp to copy 432 million files (39 TB)
That's probably what I'll do if I run into a problem like that another time (I'm the OP).
rbh42··on My experience with using cp to copy 432 million files (39 TB)
Not so. Both the sending and the receiving tar processes will need a data structure keeping track of which inodes they've already processed. They can skip inodes with a link count of 1, but if all inodes have multiple links (as in this case), the overhead will be twice that of a single cp process.