~psusi/ubuntu/natty/dump/faster-dump

Viewing all changes in revision 8.

  • Committer: Phillip Susi
  • Date: 2010-04-28 00:38:42 UTC
  • Revision ID: psusi@cfl.rr.com-20100428003842-lysaydd12ry4z9xj
Simple speed ups

A few simple changes to make dump faster:

1) Have dumpblock() try to combine with the last block
for larger reads

2) Have doslave() read the special blocks from the socket
first, then go back and get the data blocks from the disk.

3) Use pread() instead of bread() which internally called
ext2fs_llseek() and then read().  This also means it is no
longer neccesary to reopen the device fd or close and reopen
the ext2fs handle when the slave is started.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: