[2083] in Info-AFS_Redistribution

home help back first fref pref prev next nref lref last post

Re: setting quota given volume name or ID

daemon@ATHENA.MIT.EDU (Rainer Toebbicke)
Sat Oct 16 12:41:23 1993

Date: Sat, 16 Oct 1993 16:26:31 +0200 (METDST)
From: Rainer Toebbicke <rtb@hp-osf2.cern.ch>
To: Lance Kurisaki <kurisaki@tds.com>
Cc: info-afs@transarc.com
In-Reply-To: <9310152209.AA07895@TDS.COM>

On Fri, 15 Oct 1993, Lance Kurisaki wrote:

> Is there a way for a program to set the quota of a volume
> given the volume name or ID?  It seems that the only interface
> is via a pioctl, which takes a file path name.  Since the
> quota is a volume-related quantity, I would expect a simple
> interface to set it for a particular volume name or ID.

You could simply create a temporary mount point for the volume, set the quota
and delete the mount point again. 3-line shell script...

But thanks for the question! I was wondering how one could possibly flush 
a volume out of the cache knowing the volume ID but given that 'fs flushv' 
only takes a path name: does anybody know whether the same method would work?
How could I show that it works?

> 
> Alternatively, is there a way to map a volume name or ID to
> the path where it is mounted?  That info doesn't seem
> to be kept in the VLDB.

the volume could be mounted in several places...

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rainer Toebbicke  -  rtb@dxcern.cern.ch -or- rtb@cernvm.bitnet        O__
European Laboratory for Particle Physics(CERN) - Geneva, Switzerland   > |
Phone: +41 22 767 4911    Fax: +41 22 767 7155                        ( )\( )



home help back first fref pref prev next nref lref last post