arla underlighet
Love
lha at stacken.kth.se
Tue Apr 6 14:59:11 CEST 1999
lars malinowsky <lama at 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,
More information about the Arla-drinkers
mailing list