[193] in arla-drinkers
why do I have so many getattrs?
daemon@ATHENA.MIT.EDU (wwshen@engin.umich.edu)
Wed Aug 5 21:24:01 1998
From owner-arla-drinkers@stacken.kth.se Thu Aug 06 01:24:00 1998
Return-Path: <owner-arla-drinkers@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 7659 invoked from network); 6 Aug 1998 01:23:58 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
by bloom-picayune.mit.edu with SMTP; 6 Aug 1998 01:23:58 -0000
Received: (from majordom@localhost)
by sundance.stacken.kth.se (8.8.8/8.8.8) id DAA07042
for arla-drinkers-list; Thu, 6 Aug 1998 03:18:44 +0200 (MET DST)
Received: from vasari.ummu.umich.edu (root@vasari.ummu.umich.edu [141.213.34.185])
by sundance.stacken.kth.se (8.8.8/8.8.8) with ESMTP id DAA07031
for <arla-drinkers@stacken.kth.se>; Thu, 6 Aug 1998 03:18:06 +0200 (MET DST)
From: wwshen@engin.umich.edu
Received: from localhost (wwshen@localhost [127.0.0.1])
by vasari.ummu.umich.edu (8.8.7/8.8.7) with SMTP id VAA00547;
Wed, 5 Aug 1998 21:17:47 -0400 (EDT)
Date: Wed, 5 Aug 1998 21:17:45 -0400 (EDT)
X-Sender: wwshen@vasari.ummu.umich.edu
To: arla-drinkers@stacken.kth.se
cc: honey@citi.umich.edu
Subject: why do I have so many getattrs?
Message-ID: <Pine.SOL.3.96.980805210922.471B-100000@vasari.ummu.umich.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-arla-drinkers@stacken.kth.se
Precedence: bulk
When I run the arlad to save a file, I find
the operation getattr are called several times.
I really dont understand why this happen so many
times. Hope someone can give me an explanation
about this. Thanks a lot.
The following is the debug from arlad:
......................................
Wed Aug 5 21:06:07 1998: arlad: Rec message: opcode = 6 (getattr), size =
36
Wed Aug 5 21:06:07 1998: arlad: Start of
xfs_message_getattr:h->handle=0x0,0x6
17664c6,0x4e2,0x2102
Wed Aug 5 21:06:07 1998: arlad: xfs_message_getattr calling cm_getattr...
Wed Aug 5 21:06:07 1998: arlad: cm_getattr calling fcache_get...
Wed Aug 5 21:06:07 1998: arlad: Start of fcache_get:
Cell=0x0,fid.Volume=0x617664c6,fid.Vnode=0x4e2, fid.fid.Unique=0x2102
Wed Aug 5 21:06:07 1998: arlad: Start of find_entry
Wed Aug 5 21:06:07 1998: arlad: In find_entry: DO WE have an entry 694100
..........................................
Wed Aug 5 21:06:07 1998: arlad: cm_getattr calling checkright...
Wed Aug 5 21:06:07 1998: arlad: In findaccess: ae[0].cred=4, cred=0
Wed Aug 5 21:06:07 1998: arlad: In findaccess: ae[1].cred=0, cred=0
Wed Aug 5 21:06:07 1998: arlad: cm_getattr is done res=0 and return to
the above by sww
Wed Aug 5 21:06:07 1998: arlad: Multi-send: opcode = 7 (installattr),
size = 120
Wed Aug 5 21:06:07 1998: arlad: multi-sending wakeup: seq = 6183, error =0
Wed Aug 5 21:06:07 1998: arlad: xfs_message_getattr returning res.res=0,res.e
rror=1891940
Wed Aug 5 21:06:07 1998: arlad: proc_msg: byte = 32
Wed Aug 5 21:06:07 1998: arlad: Rec message: opcode = 10 (inactivenode),size= 32
Wed Aug 5 21:06:07 1998: arlad: Start of fcache_get:
Cell=0x0,fid.Volume=0x617
664c6,fid.Vnode=0x4e2, fid.fid.Unique=0x2102
Wed Aug 5 21:06:07 1998: arlad: Start of find_entry
Wed Aug 5 21:06:07 1998: arlad: In find_entry: DO WE have an entry 694100
Wed Aug 5 21:06:07 1998: arlad: In fcache_get: do we get an entry 694100
Wed Aug 5 21:06:07 1998: arlad: End of fcache_get by an old one 8 added
by sww
Wed Aug 5 21:06:07 1998: arlad: proc_msg: byte = 36
Wed Aug 5 21:06:07 1998: arlad: Rec message: opcode = 6 (getattr), size =
36
Wed Aug 5 21:06:07 1998: arlad: Start of
xfs_message_getattr:h->handle=0x0,0x617664c6,0x4e2,0x2102
Why do we have getattr call again for the same handle? Does xfs
receive the message about cancelling callback here? I dont think so.
Wed Aug 5 21:06:07 1998: arlad: In uptodatep:
tv.tv_sec=902365567,inode=8,e->c
allback.CallBackType=2,e->callback.ExpirationTime=902379980,
Wed Aug 5 21:06:07 1998: arlad: In uptodatep: Just from disconnect mode
Wed Aug 5 21:06:07 1998: arlad: e has been cached in fcache_get_attr,
entry->i
node=8, added by sww
Wed Aug 5 21:06:07 1998: arlad: cm_getattr calling checkright...
Wed Aug 5 21:06:07 1998: arlad: In findaccess: ae[0].cred=4, cred=0
Wed Aug 5 21:06:07 1998: arlad: In findaccess: ae[1].cred=0, cred=0
Wed Aug 5 21:06:07 1998: arlad: cm_getattr is done res=0 and return to
the abo
ve by sww
Wed Aug 5 21:06:07 1998: arlad: Multi-send: opcode = 7 (installattr),
size = 120
Wed Aug 5 21:06:07 1998: arlad: multi-sending wakeup: seq = 6185,
error =
0Wed Aug 5 21:06:07 1998: arlad: xfs_message_getattr returning res.res=0,
res.error=1891940
Wed Aug 5 21:06:07 1998: arlad: proc_msg: byte = 36
The above program running is the same as the previous one. In the
following arlad gets the another getattr call from xfs. Then arlad
receives the call about open. So why do we have three getattr for
the same file?
best,
wuwei