Re: Patch to detect unused files

Han Holl (han.holl@pobox.com)
Fri, 08 Jan 1999 15:32:16 +0100


Harald Koenig wrote:
>
> On Jan 06, Han Holl wrote:
>
> >
> > Hello,
> >
> > We've got a couple of ancient directory trees (going back to the early eighties)
> > that have accumulated a lot of garbage over the years.
> > But nobody is sure which files are actually _used_ and which can be safely
> > deleted.
> >
> > The following patch lets me do the following: all filenames are prefixed with
> > .~ , and after an unsuccesful lookup a file will be automagically restored if
> > it's actually used. In this way we can see which files have been used and
> > which haven't.
> >
>
> this is no kernel issue.
> please use `find -atime' and -mtime/-ctime to locate such files...
>

You are the fifth to remind me of the blessings of inode timestamps.
Unfortunately, their usefulness is severely limited by tools like
(tc)grep.
(Especially 'tcgrep something .' which is used a lot here).
If I thought this could be done in userspace, I wouldn't have posted
this
patch, but I don't think it's possible.

Han Holl

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/