🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #49213

Re: INN timehash and inodes

#49213
From: bill davidsen
Date: Wed, 29 Nov 2000 00:00
26 lines
2027 bytes
In article <903dm9$41m$1@selene.doeblitz.net>,
Ralf =?iso-8859-1?Q?D=F6blitz?=  <doeblitz@gmx.de> wrote:

| If you specify "-empty" find will only report empty directories.
| Unfortunately this does not work well with "-depth" on my system.

  I don't know about the mix of options, but you need multiple passes (I
think two) with -empty, since removing the empty subdirectories may
leave a directory empty, but it won't be empty on initial scan. Trying
to remove all directories not accessed in a few days, in depth order, is
inefficient, but should handle the "a/b/c" case, where no files are
involved.

  I do assume that if a directory is not accessed in days there's
nothing in it. For news that's probably valid.

  If expire produces a file deletion list for fastrm, the filename could
be trimmed and the list of directories sorted, uniq'd, and used as a
list of directories to try and remove. Lot's of better ways, I have no
idea how expire works on anything but traditional and CNFS.

-- 
  bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
Make the rules? I don't make the rules. I don't even FOLLOW the rules!

Technical Details
Message-ID: <903jjp$1q90$1@newssvr06-en0.news.prodigy.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <8vg5rg$7vc$1@ascomax2.hasler.ascom.ch> <901cue$31i6$1@newssvr06-en0.news.prodigy.com> <903dm9$41m$1@selene.doeblitz.net>

Show Full Headers
Complete Article Headers
Message-ID: <903jjp$1q90$1@newssvr06-en0.news.prodigy.com>
Subject: Re: INN timehash and inodes
Date: Wed, 29 Nov 2000 00:00:00 +0000
From: davidsen@tmr.com (bill davidsen)
References: <8vg5rg$7vc$1@ascomax2.hasler.ascom.ch> <901cue$31i6$1@newssvr06-en0.news.prodigy.com> <903dm9$41m$1@selene.doeblitz.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 699211983
X-Complaints-To: abuse@prodigy.net
X-Trace: newssvr06-en0.news.prodigy.com 975524281 59680 192.168.190.236 (29 Nov 2000 18:58:01 GMT)
Organization: TMR Associates, Schenectady NY
NNTP-Posting-Date: 29 Nov 2000 18:58:01 GMT
Newsgroups: news.software.nntp
Originator: davidsen@darkstar.prodigy.com