[901] in arla-drinkers
Re: Two problems with arla 0.25
daemon@ATHENA.MIT.EDU (Assar Westerlund)
Fri Jun 25 19:46:20 1999
From owner-arla-drinkers@stacken.kth.se Fri Jun 25 23:46:20 1999
Return-Path: <owner-arla-drinkers@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 8971 invoked from network); 25 Jun 1999 23:46:19 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
by bloom-picayune.mit.edu with SMTP; 25 Jun 1999 23:46:19 -0000
Received: (from majordom@localhost)
by sundance.stacken.kth.se (8.8.8/8.8.8) id BAA03132
for arla-drinkers-list; Sat, 26 Jun 1999 01:39:57 +0200 (MET DST)
Received: from assaris.sics.se (assaris.sics.se [193.10.66.108])
by sundance.stacken.kth.se (8.8.8/8.8.8) with ESMTP id BAA03123
for <arla-drinkers@stacken.kth.se>; Sat, 26 Jun 1999 01:39:39 +0200 (MET DST)
Received: (from assar@localhost) by assaris.sics.se (8.9.3/8.7.3) id BAA93384; Sat, 26 Jun 1999 01:39:54 +0200 (CEST)
From: Assar Westerlund <assar@stacken.kth.se>
To: Rainer Schoepf <schoepf@uni-mainz.de>
Cc: arla-drinkers@stacken.kth.se
Subject: Re: Two problems with arla 0.25
References: <14174.24707.683955.762702@perdita.zdv.Uni-Mainz.de> <5lk8svd79b.fsf@assaris.sics.se> <14195.31250.645288.665994@perdita.zdv.Uni-Mainz.de>
Mime-Version: 1.0 (generated by tm-edit 7.68)
Content-Type: multipart/mixed;
boundary="Multipart_Sat_Jun_26_01:39:51_1999-1"
Content-Transfer-Encoding: 7bit
Date: 26 Jun 1999 01:39:51 +0200
In-Reply-To: Rainer Schoepf's message of "Fri, 25 Jun 1999 14:46:10 +0200 (MEST)"
Message-ID: <5lemizn92w.fsf@assaris.sics.se>
Lines: 71
X-Mailer: Gnus v5.5/Emacs 19.34
Sender: owner-arla-drinkers@stacken.kth.se
Precedence: bulk
--Multipart_Sat_Jun_26_01:39:51_1999-1
Content-Type: text/plain; charset=US-ASCII
Rainer Schoepf <schoepf@uni-mainz.de> writes:
> This works, I can then access all my files in AFS. If I now create a
> file, it has owner root, not schoepf, and it is not possible to append
> something:
>
> bash-2.02# echo xxx >test
> bash-2.02# ls -l test
> -rw-r--r-- 1 root software 4 Jun 25 14:43 test
> bash-2.02# cat yyy >>test
> cat: cannot open yyy
>
> However, on another machine running Transarc AFS I see:
>
> $ ls -l test
> ---------- 1 root software 4 Jun 25 14:43 test
> schoepf@perdita(618)$
This doesn't happen to me with the current code. The appended patch I
think is what fixes the problem with the ownership. That the
permissions get to be zero is strange.
/assar
--Multipart_Sat_Jun_26_01:39:51_1999-1
Content-Type: text/plain; charset=US-ASCII
Index: arlad/messages.c
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/arlad/messages.c,v
retrieving revision 1.130
retrieving revision 1.131
diff -u -w -u -w -r1.130 -r1.131
--- messages.c 1999/06/09 22:17:31 1.130
+++ messages.c 1999/06/20 02:04:41 1.131
@@ -831,6 +831,7 @@
parent_fid = (VenusFid *)&h->parent_handle;
xfs_attr2afsstorestatus(&h->attr, &store_status);
+ if (connected_mode != CONNECTED) {
if (!(store_status.Mask & SS_OWNER)) {
store_status.Owner = h->cred.uid;
store_status.Mask |= SS_OWNER;
@@ -843,6 +844,7 @@
store_status.ClientModTime = now.tv_sec;
store_status.Mask |= SS_MODTIME;
}
+ }
ce = cred_get (parent_fid->Cell, h->cred.pag, CRED_ANY);
assert (ce != NULL);
@@ -991,6 +993,7 @@
assert (ce != NULL);
xfs_attr2afsstorestatus(&h->attr, &store_status);
+ if (connected_mode != CONNECTED) {
if (!(store_status.Mask & SS_OWNER)) {
store_status.Owner = h->cred.uid;
store_status.Mask |= SS_OWNER;
@@ -1002,6 +1005,7 @@
store_status.ClientModTime = now.tv_sec;
store_status.Mask |= SS_MODTIME;
+ }
}
do {
--Multipart_Sat_Jun_26_01:39:51_1999-1--