[745] in arla-drinkers

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

Re: arla underlighet

daemon@ATHENA.MIT.EDU (Love)
Tue Apr 6 09:05:56 1999

From owner-arla-drinkers@stacken.kth.se Tue Apr 06 13:05:55 1999
Return-Path: <owner-arla-drinkers@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 8637 invoked from network); 6 Apr 1999 13:05:54 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
  by bloom-picayune.mit.edu with SMTP; 6 Apr 1999 13:05:54 -0000
Received: (from majordom@localhost)
	by sundance.stacken.kth.se (8.8.8/8.8.8) id OAA11609
	for arla-drinkers-list; Tue, 6 Apr 1999 14:59:11 +0200 (MET DST)
Received: from elixir.e.kth.se (elixir.e.kth.se [130.237.48.5])
	by sundance.stacken.kth.se (8.8.8/8.8.8) with ESMTP id OAA11605
	for <arla-drinkers@stacken.kth.se>; Tue, 6 Apr 1999 14:59:07 +0200 (MET DST)
Received: from robert.e.kth.se (IDENT:1073744992@robert.e.kth.se [130.237.48.106])
	by elixir.e.kth.se (8.9.2/8.9.2) with ESMTP id OAA29954;
	Tue, 6 Apr 1999 14:59:05 +0200 (MET DST)
Received: (from lha@localhost)
	by robert.e.kth.se (8.9.2/8.9.2) id OAA15403;
	Tue, 6 Apr 1999 14:59:05 +0200 (MET DST)
From: Love <lha@stacken.kth.se>
To: lars malinowsky <lama@pdc.kth.se>
Cc: arla-drinkers@stacken.kth.se
Subject: Re: arla underlighet
References: <199904060906.LAA05075@nightfly.pdc.kth.se>
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
Date: 06 Apr 1999 14:59:05 +0200
In-Reply-To: lars malinowsky's message of Tue, 6 Apr 1999 11:06:23 +0200 (CEST)
Message-ID: <amwvzpsy5i.fsf@robert.e.kth.se>
Lines: 74
X-Mailer: Gnus v5.5/Emacs 20.2
Sender: owner-arla-drinkers@stacken.kth.se
Precedence: bulk

lars malinowsky <lama@pdc.kth.se> writes:

> - - - det underliga - - -
> #
> # tappade bort historien innan - volymen hette
> # i begynnelsen common.L.fluent, sedan...
> #
> nightfly%
> nightfly% cd /afs/pdc.kth.se/common/usr/local/vol/fluent
> nightfly% fs setq . 0
> nightfly%
> #
> # och sedan
> #
> nightfly% fs lq .
> Volume Name            Quota    Used    % Used   Partition
> comuent                    0  505074        0%          2%  
> nightfly%
> #
> # så hade volymen bytt namn till en kombination
> # av common och common.L.fluent; dessutom tyckte
> # vldb'n och resten olika...

[vos setquota changed the name of the volume /lha]

you only changed the name in the volser, this infomation is only show to
the user (like in vos exa and listvol) (and when determing what type of
volume it is (at least I think to because when I renamed it to garbage,
my transarcclient got very confused (and still is :( ))).

The patch below is a workaround for the the problem, since the setquota i
just supposed to change quota (and not the volumename) it will do for now.
The patch is not really right accordning to the documetation.

[ using vos syncserv && vos rename to change the name of the volume ]

Just insert a breakpoint in viocsetvolstat() and change volumename
at aproprate place after applying the patch.

Love


Index: messages.c
===================================================================
RCS file: /usr/local/cvsroot/arla/arlad/messages.c,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -w -u -w -r1.124 -r1.125
--- messages.c	1999/03/29 00:31:01	1.124
+++ messages.c	1999/04/06 12:36:20	1.125
@@ -1899,6 +1899,7 @@
 
     ptr = h->msg + sizeof (AFSFetchVolumeStatus);
 
+#if 0
     if (*ptr) {
 	strncpy (volumename, ptr, AFSNAMEMAX);
 	ptr += strlen (ptr);
@@ -1918,6 +1919,11 @@
     }
 
     strncpy (motd, ptr, AFSOPAQUEMAX);
+#else
+    volumename[0] = '\0';
+    offlinemsg[0] = '\0';
+    motd[0] = '\0';
+#endif
 
     do {
 	error = setvolstat (fid, ce, &outvolstat, volumename,





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