lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Mon, 19 May 2008 02:58:44 +0200
From:	Bernie Innocenti <bernie@...ewiz.org>
To:	Theodore Tso <tytso@....edu>, bernie@...ewiz.org,
	lkml <linux-kernel@...r.kernel.org>,
	David Woodhouse <dwmw2@...radead.org>, ext3-users@...hat.com,
	ext2-devel@...ts.sourceforge.net,
	Stefano Fedrigo <aleph@...eler.com>
Subject: Re: ext3_dx_add_entry: Directory index full!

Theodore Tso wrote:

> P.S.  Past a certain point, you really don't want to have that many
> files in a Maildir directory; if the user is never going to be
> deleting his SPAM, then you should seriously think about using a Unix
> mbox style storage scheme.  Even with a 1k block filesystem, at 12
> million files you'll be wasting 6 gigabytes of disk space of slack
> space that is totally being wasted since the whole point of using
> Maildir is to make it easy to delete or replace individual mail
> messages.

Yes.  I'm proposing my users a cron job that will prune everything
but the most recent 2000 messages in their spamtraps.

This particular user likes to do "spam forensics" with sophisticated
Perl scripts and shell one liners, and publish pretty cool results
like this one:

simone@...ing:~/Maildir$ grep -rhIos "Be [^.]*\." .Junk .junk/ | sort | uniq
Be a bunch of bastards.
Be a fool for five minutes.
Be a good person than a famous person.
Be an attraction by showing off our white gold with diamond brim.
Be attention grabbing with this watch.
Be attractive with genuine replica timepiece.
Be a very positive thing.
Be a vogue magician.
Be aware of an inherent conflict of interest resulting from such compensation.
Be aware of an inherent conflict of interest resulting from such compensation due to the fact that this is a paid advertisement and is not without bias.
Be aware of an inherent conflict of interest resulting from such holdings due to our intent to profit from the liquidation of these shares.
Be bold.
Be chic with our reasonably priced watch.
Be civil to all; sociable to many; familiar with few.
Be confidence with set of diamonds on pure gold masterpiece.
Be fashionable with our low priced watch.
Be free to choose, and not to be chosen for, is an inalienable.
Be gentle with yourself, learn to lvoe yourself, to forgive.
Be having it.
Be lying.
Be made dependent on myth nor tied to any authority lest doubt about.
Be silent, and be thought a fool, than to speak and remove all doubt.
Be Used for Any Commercial Purposes of Any Kind.


What bastard operator would deny an innocent user such an
irresistible pleasure for a few GBs of disk? :-)


> If you want to archive all of your SPAM, why use a Maildir format
> mbox at all?

You're right, but we'd have to teach all the tools that mess into
the Maildir about both formats.  I find it incredibly easier
to process email if it's in one simple format.  As in my cleanup
script:

  for i in /mail/*/.Junk.Both/cur /mail/*/.Junk.Both/new; do
      ls -t $i | tail -n +2000 | xargs rm;
  done

Easy as pie ;-)

For a while, we considered reiser3 for mail storage, but seeing
it's being marginally maintained and phased out by all distributors,
we've opted for wasting some cheap disk space instead.

-- 
   \___/
  _| X |  Bernie Innocenti - http://www.codewiz.org/
  \|_O_|  "It's an education project, not a laptop project!"
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ