From: mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney)
Subject: Re: Post Scriptum - quotactl()
Date: 13 Sep 2000 04:26:41 GMT [thread overview]
Message-ID: <8pmvm1$c6j$1@news.ndsu.nodak.edu> (raw)
In-Reply-To: 8pdepa$2mv2$1@ns.felk.cvut.cz
In article <8pdepa$2mv2$1@ns.felk.cvut.cz>,
Ivan Dolezal <ivan.dolezal@usa.net> wrote:
>
> Is quotactl() the best way to do it?
Yes, it is.
> I also experimented with dqb_btime, dqb_itime, but it didn't appear to have
> any influence on 'quota' grace time. Does anybody know why? I play with
> AdvFS. And, actually, what time units are dqb_*time? Seconds?
The units are seconds. We always use a 7 day grace period, i.e.
user_quota.dqb_btime = 604800; /* 7 days * 24 hours * 3600 sec */
That seems to work for us -- I haven't tried any other values.
Check out the tru64-unix-managers mailing list. Search *way* back for
"Richard Jackson". He sent some quota code for setting user quotas on
AdvFS to the list years ago. His stuff should do exactly what you need.
If you run into problems with it, let me know. I have a similar utility
that I wrote years ago for AIX, which I've since ported to Tru64 and Linux,
for setting a quota directly from the command line without the need for
a quota prototype user. Mine has some site-specific stuff in it for our
site, though, so it would probably need some clean-up before I could give
it out.
Tim
--
Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services (701) 231-1076 (Voice)
Room 242-J1, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
next prev parent reply other threads:[~2000-09-13 4:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-09 11:28 How to set user quotas for a new fileset? Ivan Dolezal
2000-09-09 13:42 ` Post Scriptum - quotactl() Ivan Dolezal
2000-09-13 4:26 ` Tim Mooney [this message]
2000-10-19 1:25 ` How to set user quotas for a new fileset? Mike Mohr
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox