]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE12-undo-linux-call-afs-dopartialwrite-20010920
authorDerrick Brashear <shadow@dementia.org>
Thu, 20 Sep 2001 06:10:38 +0000 (06:10 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 20 Sep 2001 06:10:38 +0000 (06:10 +0000)
scrap this approach

(cherry picked from commit 9d50b935e36ef7831f5172f1ac8c8dee52d61710)

configure-libafs.in
configure.in
doc/txt/RELNOTES-1.2.1
src/afs/LINUX/osi_vnodeops.c
src/afs/VNOPS/afs_vnop_write.c

index 20593a47f3b2e47213d1bd77b6a90e6995d20493..af5bb9d3a77bedb9e2f09d6543eb395e2a0e8c3c 100644 (file)
@@ -1,5 +1,5 @@
 AC_INIT(Makefile.common)
-AM_INIT_AUTOMAKE(openafs-libafs,1.2.0)
+AM_INIT_AUTOMAKE(openafs-libafs,1.2.1)
 AC_CANONICAL_HOST
 AC_CONFIG_HEADER(config/afsconfig.h)
 
index a4b9215d1b6da857b8c916791be0278c5990c0a4..bfe164be197b3a89786e95801ee60e67bf345874 100644 (file)
@@ -1,5 +1,5 @@
 AC_INIT(src/config/stds.h)
-AM_INIT_AUTOMAKE(openafs,1.2.0)
+AM_INIT_AUTOMAKE(openafs,1.2.1)
 AC_CANONICAL_HOST
 AC_CONFIG_HEADER(src/config/afsconfig.h)
 
index 42f17e6c6af8661a2f959e5d07f422fbf555913d..4b0839c14c44965ae72f1d65ac45a9f751a47d82 100644 (file)
@@ -20,10 +20,10 @@ All systems:
 
 Linux:
 - All Linux versions have a bug fix to make writes of files larger than
-  the AFS client cache work in all cases while preserving fixes which
-  prevent some writes from succeeding or failing (including cases where
-  a file write to an over-quota volume is being attempted, a problem
-  affecting all OpenAFS versions since release from IBM).
+  the AFS client cache work. This undoes a fix which attempted to correct
+  a problem where some writes neither succeeded nor failed
+  (including cases where a file write to an over-quota volume is being 
+  attempted, a problem affecting all OpenAFS versions since release from IBM).
 - Linux 2.2 PowerPC should install correctly again
 
 Digital UNIX:
index 48895106ed192368110dfdbb526f69c1b730b9ca..1227272bfbed5569abd25ddf994e30e6d689e0ac 100644 (file)
@@ -134,6 +134,10 @@ static ssize_t afs_linux_write(struct file *fp, const char *buf, size_t count,
     ObtainWriteLock(&vcp->lock, 530);
     vcp->m.Date = osi_Time(); /* set modification time */
     afs_FakeClose(vcp, credp);
+    if (code>=0)
+       code2 = afs_DoPartialWrite(vcp, &treq);
+    if (code2 && code >=0)
+       code = (ssize_t) -code2;
     ReleaseWriteLock(&vcp->lock);
        
     afs_Trace4(afs_iclSetp, CM_TRACE_WRITEOP, ICL_TYPE_POINTER, vcp,
index 8f6789fe16910927d13ec191083e30229cde6cf1..55ad6f1fdccb85f3690824daaa3e11aa7687eb62 100644 (file)
@@ -280,7 +280,7 @@ afs_MemWrite(avc, auio, aio, acred, noLock)
        if (filePos > avc->m.Length)
            avc->m.Length = filePos;
 #endif
-#if (!defined(AFS_VM_RDWR_ENV)||defined(AFS_LINUX20_ENV))
+#ifndef AFS_VM_RDWR_ENV
        /*
         * If write is implemented via VM, afs_DoPartialWrite() is called from
         * the high-level write op.