mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
STABLE12-undo-linux-call-afs-dopartialwrite-20010920
scrap this approach
(cherry picked from commit 9d50b935e3
)
This commit is contained in:
parent
aedf70a99d
commit
1e9af84eed
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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:
|
||||
|
@ -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,
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user