Re: [bk patch] Make cardbus compile in -pre4
Padraig Brady (email@example.com)
Wed, 13 Feb 2002 11:59:54 +0000
Padraig Brady wrote:
> William Stearns wrote:
>> Good day, Larry,
>> On Sat, 9 Feb 2002, Larry McVoy wrote:
>>> On Sat, Feb 09, 2002 at 01:01:34PM -0800, David Lang wrote:
>>>> do you have a script that can go back after the fact and see what
>>>> can be
>>>> I'm thinking specififcly of the type of thing that will be happening to
>>>> your server where you have a bunch of people putting in a clone of one
>>>> tree who will probably not be doing a clone -l to set it up, but who
>>>> have and you want to clean up after the fact (and perhapse again on a
>>>> periodic basis, becouse after all of these trees apply a changeset from
>>>> linus they will all have changed (breaking the origional hardlinks) but
>>>> will still be duplicates of each other.
>>> We don't, but we can, and we should. "bk relink tree1 tree2" seems
>>> like the right interface.
>>> Right now we aren't too worried about the disk space, the data is
>>> sitting on a pair of 40GB drives and we're running the trees in gzip
>>> mode, so they
>>> are 75MB each. But yes, it's a good idea, we should do it, and probably
>>> should figure out some way to make it automatic. I'll add it to the
>>> (ever growing) list, thanks.
>> Larry, I'll save you the time.
>> "freedups -a -d /some/dir [/other/dirs]" will look for identical
>> files (the -d requires dates to be equal as well as the content) and
>> hardlink them. It's not terribly efficient, but works marvelously
>> well. Run it from cron once a week or so, perhaps?
>> - Bill
> Not terribly efficient? That's a bit of an understatement :-)
> The findup component of fslint is MUCH quicker, and it's
> also written in bash. A quick test against two 2.4.17 trees gives:
> 1m36s for ./findup /usr/src/linux | ./fstool/mergeDup
> 18m17s for ./freedups -a /usr/src/linux
> Note mergeDup was a quick hack and took 1m30s of findup's time!
> I'm going to rewrite it in python ASAP to help with this.
> You can download the current version of fslint from
OK I've updated fslint which can be downloaded @
To merge 2 linux trees you do: ./findup -m /usr/src/linux
This will take about 37 seconds (note freedups takes 15
minutes to do the same). Note be careful that your editor
handles hardlinked files as you expect.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/