DEVEL15-dynroot-bad-merge-20090605

LICENSE IPL10

remove doubled code
This commit is contained in:
Derrick Brashear 2009-06-06 00:59:18 +00:00
parent c10a91f638
commit 12463ecb2c

View File

@ -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