STABLE12-undo-linux-call-afs-dopartialwrite-20010920

scrap this approach


(cherry picked from commit 9d50b935e3)
This commit is contained in:
Derrick Brashear 2001-09-20 06:10:38 +00:00
parent aedf70a99d
commit 1e9af84eed
5 changed files with 11 additions and 7 deletions

View 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)

View 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)

View 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:

View 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,

View 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.