Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The dictionary file cannot be an FIFO #45

Open
Steelskin opened this issue Jul 17, 2015 · 1 comment
Open

The dictionary file cannot be an FIFO #45

Steelskin opened this issue Jul 17, 2015 · 1 comment

Comments

@Steelskin
Copy link
Contributor

What steps will reproduce the problem?

  1. Create a FIFO 'f' using mkfifo t
  2. Run vcdiff encode -dictionary t
  3. Run echo "source data" > t in a different terminal

What is the expected output? What do you see instead?

Vcdiff should work with a FIFO dictionary, but it says Error finding size of dictionary file 't': Illegal seek. Apparently the dictionary file is handled as a random access file. Xdelta3, on the other hand, allows FIFO sources.

What version of the product are you using? On what operating system?

open-vcdiff 0.8.3, Mac OS X/Homebrew.

Please provide any additional information below.

If the dictionary file is a FIFO (or in general a non-seekable source), the vcdiff command-line tool has the option of loading the entire dictionary file into its memory.

@Steelskin
Copy link
Contributor Author

vcdiff should not require seek. Leaving priority as is for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant