[26600] in Athena Bugs
Athena quota messages are hard to see and cryptic
daemon@ATHENA.MIT.EDU (John Hawkinson)
Tue Sep 13 18:54:29 2005
Date: Tue, 13 Sep 2005 18:53:53 -0400 (EDT)
Message-Id: <200509132253.j8DMrrWK020558@bart-savagewood.mit.edu>
To: bugs@mit.edu
From: John Hawkinson <jhawk@mit.edu>
X-Spam-Score: 0.73
X-Spam-Flag: NO
Errors-To: bugs-bounces@mit.edu
Trying once again to wrap my head around the perspective of users,
I've noticed that a lot of users who are over quota have absolutely
no idea what is going on, or why their entire desktop (and browser!)
are breaking catastrophically.
Athena should do a better job of explaining the over quota condition
and giving users some advice (like "athrun consult helpquota", or "env
HOME=/var/tmp firefox &") so they can get work done.
I think a dialog box would really be appropriate, possibly even a modal
one, though I suppose anything GNOME would break horribly.
A start, though, would be to improve the over quota message.
Most people don't know what a quota is, and they don't understand
how much space they have. Perhaps something like the attached patch.
--jhawk
--- athena/bin/quota/afs.c Fri Dec 17 02:00:11 2004
+++ /tmp/afs.c Tue Sep 13 18:51:24 2005
@@ -80,8 +80,11 @@
{
if (fs->dqb.dqb_curblocks > fs->dqb.dqb_bhardlimit)
{
- printf("Over disk quota on %s, remove %dK.\n", fs->mount,
- (fs->dqb.dqb_curblocks - fs->dqb.dqb_bhardlimit) / 2);
+ printf("ATTENTION: You are using %dK more space than your disk quota\n"
+ "in %s. You are permited to use only %dK. "
+ "Please remove some files.\n",
+ (fs->dqb.dqb_curblocks - fs->dqb.dqb_bhardlimit) / 2,
+ fs->mount, fs->dqb.dqb_bhardlimit /2 );
}
else if (fs->dqb.dqb_curblocks > (fs->dqb.dqb_bhardlimit * 9 / 10))
{