pxzcat.git
8 years agoUpdate README to point out that you shouldn't use this project in production. master
Richard W.M. Jones [Sat, 12 Dec 2015 12:04:42 +0000 (12:04 +0000)]
Update README to point out that you shouldn't use this project in production.

10 years agoAvoid ext4 auto_da_alloc flush on close (v2).
Richard W.M. Jones [Wed, 23 Oct 2013 07:26:42 +0000 (08:26 +0100)]
Avoid ext4 auto_da_alloc flush on close (v2).

This updates commit 68640d56b2ea96401a1355ab56603b0837058d21.

Don't unlink the file: As Florian Weimer pointed out, this would cause
problems if someone uses '-o /dev/null' (it could delete /dev/null).

Don't write a byte.  The exact condition which causes the
auto_da_alloc misbehaviour is truncating a file from a large size to 0
size.  So this write was not necessary.

Thanks: Florian Weimer, Eric Sandeen, Eric Blake.

10 years agoWrite NUL (\0) byte, not space.
Richard W.M. Jones [Wed, 23 Oct 2013 06:37:08 +0000 (07:37 +0100)]
Write NUL (\0) byte, not space.

10 years agoAvoid ext4 auto_da_alloc flush on close.
Richard W.M. Jones [Tue, 22 Oct 2013 21:14:34 +0000 (22:14 +0100)]
Avoid ext4 auto_da_alloc flush on close.

Avoid annoying ext4 auto_da_alloc which causes a flush on close unless
we are very careful about not truncating the file when it has zero
size.  (Thanks Eric Sandeen)

10 years agoMove buf out of inner loop.
Richard W.M. Jones [Tue, 22 Oct 2013 12:03:55 +0000 (13:03 +0100)]
Move buf out of inner loop.

Since the buf pointer can be used by the stream across multiple
iterations of the loop.

10 years agoUse posix_fadvise to tell the kernel how we use the output file.
Richard W.M. Jones [Tue, 22 Oct 2013 10:59:30 +0000 (11:59 +0100)]
Use posix_fadvise to tell the kernel how we use the output file.

10 years agodebug: Print number of threads being used.
Richard W.M. Jones [Tue, 22 Oct 2013 10:59:13 +0000 (11:59 +0100)]
debug: Print number of threads being used.

10 years agoDisable debugging.
Richard W.M. Jones [Mon, 21 Oct 2013 15:16:27 +0000 (16:16 +0100)]
Disable debugging.

10 years agoAdd threading support.
Richard W.M. Jones [Mon, 21 Oct 2013 13:40:01 +0000 (14:40 +0100)]
Add threading support.

10 years agoPreserve sparseness of output file.
Richard W.M. Jones [Mon, 21 Oct 2013 13:12:40 +0000 (14:12 +0100)]
Preserve sparseness of output file.

10 years agoSingle thread uncompress working, no sparse support.
Richard W.M. Jones [Mon, 21 Oct 2013 12:59:16 +0000 (13:59 +0100)]
Single thread uncompress working, no sparse support.

10 years agoVarious fixes.
Richard W.M. Jones [Mon, 21 Oct 2013 12:03:05 +0000 (13:03 +0100)]
Various fixes.

10 years agoAutotools setup.
Richard W.M. Jones [Mon, 21 Oct 2013 11:44:08 +0000 (12:44 +0100)]
Autotools setup.

10 years agoConvert nbdkit xzfile -> pxzcat.
Richard W.M. Jones [Mon, 21 Oct 2013 11:42:01 +0000 (12:42 +0100)]
Convert nbdkit xzfile -> pxzcat.