bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

du: cache directory size


From: Mildred
Subject: du: cache directory size
Date: Wed, 2 Jul 2008 18:49:17 +0200

Hi,

I noticed that du takes a long time to scan directories and measure
disk usage.

I was thinking that perhaps caching the size of directories could bu
useful. Perhaps, after du computes the size of a directory, it could
write its size in its extended attributes (if the filesystem support
it). Next time, du would only compare the directory atime (or mtime
perhaps) with the time of the scan. That could possibly save some time
during the scan.

Perhaps this is not something to be included in du itself, but I
thought it could be a good idea to give the idea anyway.

Thanks for reading.

Mildred

-- 
Mildred Ki'lya
E-Mail: mildred593(at)online.fr

Site:   <http://mildred632.free.fr/>
XMPP:   <address@hidden> (GoogleTalk, Jabber)

GPG:    197C A7E6 645B 4299 6D37 684B 6F9D A8D6 [9A7D 2E2B]




reply via email to

[Prev in Thread] Current Thread [Next in Thread]