News for hackers. Stuff that matters.

rbh42

Re:A man who walked around the world on Wednesday April 12, 2023 @04:08PM (#35546004)
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)
Re:Why do roots of polynomials tend to have absolute value 1? on Sunday October 05, 2014 @06:47AM (#8411956)
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!
Re:Everything you need to know about the Shellshock Bash bug on Thursday September 25, 2014 @03:14PM (#8369101)
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.

Re:My experience with using cp to copy 432 million files (39 TB) on Friday September 12, 2014 @11:45AM (#8308659)
Tested by time (I'm the OP).
Re:My experience with using cp to copy 432 million files (39 TB) on Friday September 12, 2014 @11:36AM (#8308585)
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.

Re:My experience with using cp to copy 432 million files (39 TB) on Friday September 12, 2014 @11:24AM (#8308505)
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.
Re:My experience with using cp to copy 432 million files (39 TB) on Friday September 12, 2014 @11:18AM (#8308465)
That's probably what I'll do if I run into a problem like that another time (I'm the OP).
Re:My experience with using cp to copy 432 million files (39 TB) on Friday September 12, 2014 @04:37AM (#8307111)
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.