Changes by: uvman
Update of /cvs/linux-ntfs/ntfsprogs/libntfs
In directory delta357.server4you.de:/tmp/cvs-serv25768/libntfs
Modified Files:
runlist.c
Log Message:
Remove code that was already marked as broken and commented out.
Index: runlist.c
===================================================================
RCS file: /cvs/linux-ntfs/ntfsprogs/libntfs/runlist.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -p -r1.69 -r1.70
--- runlist.c 27 Jul 2006 18:12:23 -0000 1.69
+++ runlist.c 25 Sep 2006 17:03:48 -0000 1.70
@@ -1581,7 +1581,6 @@ err_out:
int ntfs_rl_truncate(runlist **arl, const VCN start_vcn)
{
runlist *rl;
- BOOL is_end = FALSE;
if (!arl || !*arl) {
errno = EINVAL;
@@ -1620,25 +1619,10 @@ int ntfs_rl_truncate(runlist **arl, cons
*/
if (rl->length) {
++rl;
- if (!rl->length)
- is_end = TRUE;
rl->vcn = start_vcn;
rl->length = 0;
}
rl->lcn = (LCN)LCN_ENOENT;
- /**
- * Reallocate memory if necessary.
- * FIXME: Below code is broken, because runlist allocations must be
- * a multiply of 4096. The code caused crashes and corruptions.
- */
-/*
- if (!is_end) {
- size_t new_size = (rl - *arl + 1) * sizeof(runlist_element);
- rl = realloc(*arl, new_size);
- if (rl)
- *arl = rl;
- }
-*/
return 0;
}
|