bug#7529: Bug#605639: deal better with different filesystem timestamp resolutions

2010-12-03 Thread Jim Meyering
Paul Eggert wrote: > Good eye! Thanks for the bug report and example. I installed > the following one-byte patch into gnulib; please give it a try. > It should propagate into coreutils the next time coreutils > updates from gnulib. > > A test case for this would require two file systems, one with

bug#7529: Bug#605639: deal better with different filesystem timestamp resolutions

2010-12-03 Thread Paul Eggert
On 12/03/10 02:03, Jim Meyering wrote: > Would you mind adding a "Bug fixes" entry for this > in coreutils' NEWS file? It'd be nice to commit that > along with an update of the gnulib submodule to the latest. Sure, done, with this notice: cp -u no longer does unnecessary copying merely becaus

bug#7489: [coreutils] over aggressive threads in sort

2010-12-03 Thread Chen Guo
Thanks Jim, that helped a lot. I'll try out Professor Eggert's suggestion, of switching to mutexes only at the top level merge. Of the following approaches, which would you guys consider better practice? 1) void pointer, cast as either mutex or spinlock in lock function 2) union of mutex and spin