On 1/10/06, Carlos E. R.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Sunday 2006-01-08 at 17:22 +0100, Per Jessen wrote:
Carlos E. R. wrote:
Why do you say that, for /proc? It is not completely a different filesystem, it seems. I use "--exclude=/proc" explicitly. The 'du' in SuSE 9.3 does the same.
/proc is a mounted pseudo-filesystem, but regardless, 'du' should avoid it with the -x switch. It's almost as if 'du' is having trouble recognising what /proc is? Except Steve said it worked fine on his 9.3 system.
I checked, and "du" does have problems with "-x" in my 9.3. See:
nimrodel:~ # du -s -h -x --exclude=/proc /* 2.4G /backup 4.0K /nuevo 3.0G /home 0 /other ...
All of those are mounted partitions, they are not excluded - except one. I suppose it happens because of the shell expansion of the '*' above, but then I don't see why "/other" is excluded.
Per, Carlos,
I have not been able to figure out why "du" behaves differently
(including the odd -x switch behavior). As stated earlier -x works
for me and I don't see any other problems on my 9.3 and 8.2 systems.
This puzzle seems to be unsolved, for now at least.
\Steve
--
Steve Graegert