Shadyred75 / wombatforensics

Automatically exported from code.google.com/p/wombatforensics
0 stars 0 forks source link

Add FileObjects to the database #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
loop over all the file objects and add them to the database.

Original issue reported on code.google.com by pjrina...@gmail.com on 12 Mar 2014 at 12:30

GoogleCodeExporter commented 9 years ago
working on opening/walking the fs_info file and then adding to 
filedirinfovector. from there i'll add them to the db and then get them from 
the db into the fileobjectvector

Original comment by pjrina...@gmail.com on 12 Mar 2014 at 2:20

GoogleCodeExporter commented 9 years ago
working on walking the filesystem using tsk_fs_dir_walk() but running into 
issues with the callback function concept. need to figure it out.

Original comment by pjrina...@gmail.com on 16 Mar 2014 at 2:18

GoogleCodeExporter commented 9 years ago
figured out file walker, now need to work on adding the files to the db.

Original comment by pjrina...@gmail.com on 14 Apr 2014 at 4:49

GoogleCodeExporter commented 9 years ago
can add the files to the db. but the tree won't populate until this is done, 
and this function can be time consuming.

need to reorder when i branch off threads to maintain the gui responsiveness. 
also need to split the add nodes as i process them.

possibly do a thread open/insert/get/addnode for each object. or do the big 3, 
and thread the file open/insert/get/addnode pieces.

Original comment by pjrina...@gmail.com on 22 Apr 2014 at 1:07

GoogleCodeExporter commented 9 years ago
work on adding file objects to the db. then I will work on implementing the 
necessary sqlquerymodel to pull the data and populate a treeview where needed. 
see if this removes the data requirement being on the model.

Original comment by pjrina...@gmail.com on 22 Apr 2014 at 5:46

GoogleCodeExporter commented 9 years ago
adding fileobjects works. working on ensuring the gui is responsive while a 
large number of objects are added. 

Original comment by pjrina...@gmail.com on 25 Apr 2014 at 5:45

GoogleCodeExporter commented 9 years ago
adding objects works and the gui is ridiculously responsive, even when adding 
1.6 gb worth of files from an image. need to work on the sql query model and 
the progresswindow. probably progress window first, then work on replacing 
current model with sqlquerymodel

Original comment by pjrina...@gmail.com on 26 Apr 2014 at 3:07

GoogleCodeExporter commented 9 years ago
need to add actual values to the db.

Original comment by pjrina...@gmail.com on 28 Apr 2014 at 2:14

GoogleCodeExporter commented 9 years ago
issue is with pooled threads and failing when the variables are no longer 
available. so i need to store variables in something and then pass it to the 
thread, since the pointer won't be available any longer if it's pooled.

Original comment by pjrina...@gmail.com on 28 Apr 2014 at 11:13

GoogleCodeExporter commented 9 years ago
using filewalker and storing variables ahead of time, causes gui freezing. 
putting the openfiles in a thread and then calling dirwalker and storing 
variables eliminates gui freezing, but it never seems to finish. probably the 
threads in a thread in a thread causing issues with something.

need to perform my own walk function which should eliminate alot of the issues

Original comment by pjrina...@gmail.com on 28 Apr 2014 at 11:58

GoogleCodeExporter commented 9 years ago
my way is gui responsive. but updates don't occur till after the threads are 
done.

also need to look into how to get the name, path, type from the function call.

otherwise i might try their walk again, simply commenting out 
closeinfostructures and see if it doesn't error out anymore since the 
structures are still open...

Original comment by pjrina...@gmail.com on 28 Apr 2014 at 2:25

GoogleCodeExporter commented 9 years ago
adding fileobjects works. need to verify i am properly capturing all the 
variables and they are written correctly. need to find a good time to call 
closeinfostructures to free up memory as well.

Original comment by pjrina...@gmail.com on 29 Apr 2014 at 2:12

GoogleCodeExporter commented 9 years ago
fileview is displaying properly.

Original comment by pjrina...@gmail.com on 29 Apr 2014 at 6:00

GoogleCodeExporter commented 9 years ago
still need to add checkbox to the chosen column.

Original comment by pjrina...@gmail.com on 29 Apr 2014 at 6:01

GoogleCodeExporter commented 9 years ago
checkbox to choose column minimully implemented. need to have the root 
directory added to db with name / and prefix all fullpaths with /.

Original comment by pjrina...@gmail.com on 30 Apr 2014 at 2:03

GoogleCodeExporter commented 9 years ago
done unless other columns are deemed important. right now its at a good state.

Original comment by pjrina...@gmail.com on 1 May 2014 at 2:35