\_ The fastest way to regain space from a big file is to null it out, e.g.
\_
\_ '>/the/file'
\_
\_ After that remove it. This also works if you have w perm on a file, but
\_ not on the dir it's in.
This also has the advantage of not changing the inode (?) so that if
the file is still open as a log file, the logging process doesn't
notice any difference unless it checks. I discovered this on a
httpd error_log that I rm'd out from under a NS server. Suddenly all
the error problems went away...even the ones I forced. Once the
server got kicked, it was back....
\_ Check for .. files that don't point to a parent dir.
oo oo... how would you get those? Directly write to the dir file
yourself? Or are those only good in the vicinity of mount points?
\_ Check for dirs that are large, e.g. probably anything greater than 4096,
\_ as they are a probable indication of a bunch of little files.
Well, depending on the file system, which I know enough about to use
:-), it could be that an arbitrarily large file could have recorded
lots of directory information (block #1, ..., block #4e46, ....) in
the dir file and made it grow without bounds.
I remember my good CS advisor (as opposed to the bad one) saying in
the good ol' days it was common practice to abuse someone else's
account by creating and removing files in one of their dirs. The dir
file would grow with entries (since it didn't/doesn't truncate/fill
empty) but there would never be any files and the person would be over
hard quota. :-)
I also seem to remember a TA logging in to my account class-based once
and doing something evil like 'chmod -R a-rwx ~'. That makes
everything real, real hard to cope with when you're just learning.
:-)
David
From Anthony Walsh" <
awalsh@itconnections.com Mon Dec 11 15:06:39 2000
From: Anthony Walsh" <
awalsh@itconnections.com (Anthony Walsh)
Date: Mon, 11 Dec 2000 08:06:39 -0700
Subject: C++ Developer Opening (RE:
sinck@ugive.com)
Message-ID: <
004401c06384$0be89a40$061410ac@itconnections.com>
David,
Thanks for the nice comments!
Talk with you later,
Anthony G. Walsh
Account Manager awalsh@itconnections.com
IT Connections, Inc. 602.240.7711 Ext. 14
Your Source For Efficient, Effective IT Expertise.
From
wlindley@wlindley.com" <
wlindley@wlindley.com Mon Dec 11 15:57:49 2000
From:
wlindley@wlindley.com" <
wlindley@wlindley.com (William Lindley)
Date: Mon, 11 Dec 2000 08:57:49 -0700
Subject: GPL tools and proprietary software
Message-ID: <
01C06350.A8BA77A0.wlindley@wlindley.com>
> If the library is GPL, then you are incorporating GPL code into yours
But with runtime (dynamic) linking, you're not including the GPL code.
You're just asking for a library by that name. It could be anybody's
library... so GPL shouldn't enter the picture with dynamic linking, right?
\\/
From
wlindley@wlindley.com" <
wlindley@wlindley.com Mon Dec 11 15:59:19 2000
From:
wlindley@wlindley.com" <
wlindley@wlindley.com (William Lindley)
Date: Mon, 11 Dec 2000 08:59:19 -0700
Subject: "Windows" button and KDE 2
Message-ID: <
01C06350.AA7E20A0.wlindley@wlindley.com>
After upgrading to Mandrake 7.2 with KDE 2, the otherwise useless
"Windows" button doesn't bring up the "K" menu anymore. I'd like to
restore that binding.
Web searches haven't turned up any useful pointers... could anyone offer a
suggestion where to begin?
\\/
http://www.wlindley.com
From
wlindley@wlindley.com" <
wlindley@wlindley.com Mon Dec 11 16:01:19 2000
From:
wlindley@wlindley.com" <
wlindley@wlindley.com (William Lindley)
Date: Mon, 11 Dec 2000 09:01:19 -0700
Subject: Mandrake 7.2, KDE 2 and "Windows" key
Message-ID: <
01C06350.EE003B60.wlindley@wlindley.com>
sorry for the duplicate post, that's what happens on a bleary eyed Monday
before the Nth cup of coffee.