libyal / libewf

Libewf is a library to access the Expert Witness Compression Format (EWF)
GNU Lesser General Public License v3.0
263 stars 76 forks source link

compress data and write to ewf in 2 hosts #121

Closed sspring closed 4 years ago

sspring commented 5 years ago

I know data can be compressed and written to libewf_data_chunk_t using libewf_data_chunk_write_buffer function.In my case there is a littile difference.I have two hosts,the high performance one is for compressing data and the other is for writing data to ewf. I'm thinking up the following two solutions:

  1. generate libewf_data_chunk_t with compressed data,so that I can use libewf_data_chunk_write_buffer
  2. share one libewf_data_chunk_t object between two hosts.
    Can I get any suggestion?
joachimmetz commented 5 years ago

Know that the proposed approach adds additional network IO and latency to the process. Unclear to me from your description why you would want to do that.

share one libewf_data_chunk_t object between two hosts.

This is not supported by libewf. Since a libewf_chunk is simple struct with binary data, you could either send the compressed data to the other host or use (an external to the library) serialization method.

joachimmetz commented 4 years ago

No additional explanation/feedback from original reporter, closing issue