arlad dies

André Zúquete avz at sabrina.inesc.pt
Fri Sep 8 12:00:25 CEST 2000


On 7 Sep 2000, Love wrote:

|Date: 07 Sep 2000 22:09:44 +0200
|From: Love <lha at stacken.kth.se>
|To: andre.zuquete at inesc.pt
|Cc: arla-drinkers at stacken.kth.se
|Subject: Re: arlad dies
|
|André Zúquete <avz at sabrina.inesc.pt> writes:
|
|> |To: andre.zuquete at inesc.pt
|> |Cc: arla-drinkers at stacken.kth.se
|> |Subject: Re: arlad dies
|> |
|> |André Zúquete <avz at sabrina.inesc.pt> writes:
|> |
|> |> Hi,
|> |> 
|> |> arlad dies when I do a makedepend on a AFS directory. The failure
|> |> is due to an assert near the end of function truncate_file:
|> |> 
|> |> assert (entry->status.Length == size);
|> |
|> |Seems weird. Only that I can think of is this patch.
|> |
|> |Is it possible to reproduce the error, how do you do it (like on what tree
|> |are yu running makedepend, etc).
|> 
|> Tkx for the fast answer and fix, but the error remains the same ...
|> 
|[...] 
|> Hope this helps.
|
|Ok, I think I have found the problem. Arlad and xfs get out of sync since
|xfs seem to be happy updating the since of the file.
|
|Note that I haven't tried this patch since I'm out in the
|bandwidth-backwaters/forest (vistiting my parents). I haven't hade chance
|to check if it compiles or try run the regression tests.

It compiles and it runs. Tkx for the help!

Best regards,

    André

|Index: xfs/linux/xfs_vfsops.c
|===================================================================
|RCS file:
|/afs/stacken.kth.se/src/SourceRepository/arla/xfs/linux/xfs_vfsops.c,v
|retrieving revision 1.68
|diff -u -w -r1.68 xfs_vfsops.c
|--- xfs/linux/xfs_vfsops.c        2000/06/26 00:40:15     1.68
|+++ xfs/linux/xfs_vfsops.c        2000/09/07 20:05:50
|@@ -365,8 +365,10 @@
|         vattr2xfs_attr(attr, &msg.attr);
|        inode_setattr(inode, attr);
|        if (XFS_TOKEN_GOT(xn, XFS_DATA_R)) {
|-           if (S_ISREG(inode->i_mode))
|+           if (S_ISREG(inode->i_mode)
|+               && (attr->ia_valid & ATTR_SIZE) == ATTR_SIZE) {
|                XA_SET_SIZE(&msg.attr,  inode->i_size);
|+           }
|            XA_SET_MTIME(&msg.attr, inode->i_mtime);
|        }
|         error = xfs_message_rpc(xfsp->fd, &msg.header, sizeof(msg));
|

   ____________________________________________________________________
  /|               __                 | Andre' Ventura Zu'quete        |
 /_|  /|_  _|_ /    / /  _     _|_    | e-mail: Andre.Zuquete at inesc.pt |
|    /-| )(_| (-   /_|_)(_|_)(- | (-  | Phone: +351 213100-395         |
|                         |           | URL: www.gsd.inesc.pt/~avz     |
 ----------------------------------------------------------------------
| INESC (Instituto de Engenharia de Sistemas e Computadores)         __|
| R. Alves Redol 9, 6. 1000 Lisboa, PORTUGAL                        | /
| Fax: +351 213145843                                               |/
 -------------------------------------------------------------------






More information about the Arla-drinkers mailing list