mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
DEVEL15-dynroot-bad-merge-20090605
LICENSE IPL10 remove doubled code
This commit is contained in:
parent
c10a91f638
commit
12463ecb2c
@ -2414,28 +2414,6 @@ afs_GetDCache(register struct vcache *avc, afs_size_t abyte,
|
||||
code = afs_CFileWrite(file, 0, dynrootDir, size);
|
||||
afs_PutDynroot();
|
||||
|
||||
if (code == size)
|
||||
code = 0;
|
||||
else
|
||||
code = -1;
|
||||
|
||||
tdc->validPos = Position + size;
|
||||
afs_CFileTruncate(file, size); /* prune it */
|
||||
} else if (afs_IsDynrootMount(avc)) {
|
||||
char *dynrootDir;
|
||||
int dynrootLen;
|
||||
|
||||
afs_GetDynrootMount(&dynrootDir, &dynrootLen, &tsmall->OutStatus);
|
||||
|
||||
dynrootDir += Position;
|
||||
dynrootLen -= Position;
|
||||
if (size > dynrootLen)
|
||||
size = dynrootLen;
|
||||
if (size < 0)
|
||||
size = 0;
|
||||
code = afs_CFileWrite(file, 0, dynrootDir, size);
|
||||
afs_PutDynroot();
|
||||
|
||||
if (code == size)
|
||||
code = 0;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user