Path: usenet.cis.ufl.edu!usenet.eel.ufl.edu!pacifier!rainrgnews0!psgrain!nntp.teleport.com!usenet From: tnzoerne@faui01.informatik.uni-erlangen.de (Tom Zoerner) Newsgroups: comp.lang.perl.announce,comp.lang.perl.misc Subject: ANNOUNCE: Quota extension module Followup-To: comp.lang.perl.misc Date: 12 Oct 1995 15:26:59 GMT Organization: Student Pool, CSD., University of Erlangen Lines: 47 Approved: merlyn@stonehenge.com (comp.lang.perl.announce) Message-ID: <45jc44$ois@maureen.teleport.com> NNTP-Posting-Host: linda.teleport.com Keywords: Perl5 extension module quotactl RPC X-Disclaimer: The "Approved" header verifies header information for article transmission and does not imply approval of content. Xref: usenet.cis.ufl.edu comp.lang.perl.announce:156 comp.lang.perl.misc:8615 New: Quota extension module for Perl5 ---- -------------------------------- Version: 0.1a (alpha) DSLI-code: adcf Supported: SunOS 4.1.3, HP-UX 9.0, IRIX 5.3 Location: ftp://franz.ww.tu-berlin.de/pub/authors/id/TOMZO/Quota-0.1a.tar.gz Author: TOMZO Tom Zoerner Copyright: none / Public Domain This small module provides access to and utilities for disk quotas. In detail, the quotactl(2) syscall is used to query or set quotas on the local host, or RPC to send a query to a remote host. A "getdev" function is provided which uses getmntent(3) to translate paths to the block device of the according file system. -tom -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- query(dev[,uid]) get current quota and limits for given filesystem and user. setqlim(dev,uid,bs,bh,fs,fh[,tlo]) set quota limits for given user (block soft/hard, inode soft/hard) tlo decides if timelimit is set to "NOT STARTED" (0,default) or "7.0 days" (1) sync() have the kernel update the quota file on disk rpcquery(host,path[,uid]) query quotas on a remote host via RPC call. getdev([$path]) Get the block device for the filesystem of the given path or "." setmntent() Open mtab file. If already open, automatically closed before. getmntent() returns next entry in mtab or undef. endmntent() close mtab file, if open. Always returns undef. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- .