From 7eb541f3d270b3a12b42bba14699bd63b90fc1e6 Mon Sep 17 00:00:00 2001 From: Ann Priestman <apriestman@basistech.com> Date: Tue, 29 Aug 2017 12:20:11 -0400 Subject: [PATCH] Cleanup --- bindings/java/src/org/sleuthkit/datamodel/SleuthkitJNI.java | 2 +- tsk/auto/auto_db.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bindings/java/src/org/sleuthkit/datamodel/SleuthkitJNI.java b/bindings/java/src/org/sleuthkit/datamodel/SleuthkitJNI.java index d547f896b..ba600c923 100644 --- a/bindings/java/src/org/sleuthkit/datamodel/SleuthkitJNI.java +++ b/bindings/java/src/org/sleuthkit/datamodel/SleuthkitJNI.java @@ -1195,7 +1195,7 @@ public static boolean isImageSupported(String imagePath) { private static native long initAddImgNat(long db, String timezone, boolean addUnallocSpace, boolean skipFatFsOrphans) throws TskCoreException; private static native long initializeAddImgNat(long db, String timezone, boolean addFileSystems, boolean addUnallocSpace, boolean skipFatFsOrphans) throws TskCoreException; - + private static native void runOpenAndAddImgNat(long process, String deviceId, String[] imgPath, int splits, String timezone) throws TskCoreException, TskDataException; private static native void runAddImgNat(long process, String deviceId, long a_img_info, String timeZone, String imageWriterPath) throws TskCoreException, TskDataException; diff --git a/tsk/auto/auto_db.cpp b/tsk/auto/auto_db.cpp index d63c9295c..fefe5830d 100644 --- a/tsk/auto/auto_db.cpp +++ b/tsk/auto/auto_db.cpp @@ -904,7 +904,7 @@ TSK_WALK_RET_ENUM TskAutoDb::fsWalkUnallocBlocksCb(const TSK_FS_BLOCK *a_block, // We want to keep consecutive blocks in the same run, so simply update prevBlock and the size // if this one is consecutive with the last call. But, if we have hit the max chunk // size, then break up this set of consecutive blocks. - if ((a_block->addr == unallocBlockWlkTrack->prevBlock + 1) && ((unallocBlockWlkTrack->minChunkSize <= 0) || + if ((a_block->addr == unallocBlockWlkTrack->prevBlock + 1) && ((unallocBlockWlkTrack->maxChunkSize <= 0) || (unallocBlockWlkTrack->size < unallocBlockWlkTrack->maxChunkSize))) { unallocBlockWlkTrack->prevBlock = a_block->addr; unallocBlockWlkTrack->size += unallocBlockWlkTrack->fsInfo.block_size; @@ -919,10 +919,10 @@ TSK_WALK_RET_ENUM TskAutoDb::fsWalkUnallocBlocksCb(const TSK_FS_BLOCK *a_block, unallocBlockWlkTrack->ranges.push_back(TSK_DB_FILE_LAYOUT_RANGE(rangeStartOffset, rangeSizeBytes, unallocBlockWlkTrack->nextSequenceNo++)); // Return (instead of adding this run) if we are going to: - // a) Make one big file with all unallocated space (chunkSize == 0) + // a) Make one big file with all unallocated space (minChunkSize == 0) // or // b) Only make an unallocated file once we have at least chunkSize bytes - // of data in our current run (chunkSize > 0) + // of data in our current run (minChunkSize > 0) // In either case, reset the range pointers and add this block to the size if ((unallocBlockWlkTrack->minChunkSize == 0) || ((unallocBlockWlkTrack->minChunkSize > 0) && -- GitLab