Hi Justin,

>
> I applied the patch and it seems to have solved most of our Samba
> errors.  I'll do more extensive stress testing later, but our simple
> unit tests that were failing before now work!  Thanks!

Great!

> Even with the patch, I still have the problem with the version of fsx
> I'm using.  Attached are straces and syslogs for both the patched and
> unpatched versions of the 1.3.2 source.  We're running two I/O servers
> (on machines cluster-1 and cluster-2), 1 metadata server (cluster-1),
> and one pvfs2-client (cluster-1).  Let me know if you need more
> information.

Thanks for the excellent reports, Justin!
Attached patch should fix the truncate issues and hence the fsx tests as
well.
Thanks,
Murali
diff -Naur --exclude doc pvfs2-1.3.2/src/client/sysint/sys-truncate.c 
/home/vilayann/pvfs2-1.3.2/src/client/sysint/sys-truncate.c
--- pvfs2-1.3.2/src/client/sysint/sys-truncate.c        2005-12-02 
09:55:47.000000000 -0600
+++ /home/vilayann/pvfs2-1.3.2/src/client/sysint/sys-truncate.c 2006-01-06 
11:33:41.000000000 -0600
@@ -293,7 +293,9 @@
        status == PINODE_STATUS_VALID && 
        !(unexpired_masks == PVFS_ATTR_META_ALL))
     {
-        pinode->size = sm_p->getattr.size;
+        gossip_debug(GOSSIP_CLIENT_DEBUG, "truncate sets acache pinode size to 
%llu\n", 
+            llu(sm_p->u.truncate.size));
+        pinode->size = sm_p->u.truncate.size;
         pinode->attr.mask |= PVFS_ATTR_DATA_SIZE;
         PINT_acache_set_valid(pinode);
         PINT_acache_release(pinode);
diff -Naur --exclude doc pvfs2-1.3.2/src/client/sysint/sys-truncate.sm 
/home/vilayann/pvfs2-1.3.2/src/client/sysint/sys-truncate.sm
--- pvfs2-1.3.2/src/client/sysint/sys-truncate.sm       2005-12-02 
09:55:47.000000000 -0600
+++ /home/vilayann/pvfs2-1.3.2/src/client/sysint/sys-truncate.sm        
2006-01-06 11:33:02.000000000 -0600
@@ -279,7 +279,9 @@
        status == PINODE_STATUS_VALID && 
        !(unexpired_masks == PVFS_ATTR_META_ALL))
     {
-        pinode->size = sm_p->getattr.size;
+        gossip_debug(GOSSIP_CLIENT_DEBUG, "truncate sets acache pinode size to 
%llu\n", 
+            llu(sm_p->u.truncate.size));
+        pinode->size = sm_p->u.truncate.size;
         pinode->attr.mask |= PVFS_ATTR_DATA_SIZE;
         PINT_acache_set_valid(pinode);
         PINT_acache_release(pinode);
_______________________________________________
PVFS2-users mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users

Reply via email to