X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=store.h;h=aa961600fa4122d513e462bf4de3d710341faa33;hb=ac33ae99de4a6aa9cfaca2f7fd6746758264758e;hp=1ef5db46a5f6eb2cb39ec99dcf347b4bdbbff492;hpb=da87780779a2f165503d019ee0b59d10e5d31ec8;p=cumulus.git diff --git a/store.h b/store.h index 1ef5db4..aa96160 100644 --- a/store.h +++ b/store.h @@ -49,10 +49,11 @@ public: Tarfile(const std::string &path, const std::string &segment); ~Tarfile(); + int spawn_filter(int fd_out); void write_object(int id, const char *data, size_t len); // Return an estimate of the size of the file. - size_t size_estimate() { return size; } + size_t size_estimate(); void internal_write_object(const std::string &path, const char *data, size_t len); @@ -61,6 +62,10 @@ private: size_t size; std::string segment_name; TAR *t; + + /* Filter support. */ + int real_fd, filter_fd; + pid_t filter_pid; }; class TarSegmentStore {