You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> What steps will reproduce the problem?
1. losetup /dev/loop0 file1
2. losetup /dev/loop1 file2
3. xdelta3 -s /dev/loop0 /dev/loop1 delta
> What is the expected output? What do you see instead?
Delta file should be generated without errors. Instead error message
"xdelta3: source file must be seekable: /dev/loop0" is printed.
> What version of the product are you using? On what operating system?
xdelta3.0t on Linux Fedora 9 (x86_64)
> Please provide any additional information below.
As block devices are seekable the error is not really true.
Current implementation only allows "regular" file as source and uses
information returned by stat for file size. To be able to use xdelta on
block devices two things must be done.
1) block device should pass the "seekable" test
2) as size of block device is not returned by stat an alternate method must
be implemented. (ioctl)
Patch providing the needed changes is attached.
Original issue reported on code.google.com by khau...@gmail.com on 15 May 2008 at 7:18
Thank you for your patch!
I have wanted to add support for using a fifo for the source file, but this
approach
is more more useful. I may not get to this very soon (lots of summer weddings,
etc)
but really appreciate the help.
Original comment by josh.mac...@gmail.com on 11 Jun 2008 at 4:40
Original issue reported on code.google.com by
khau...@gmail.com
on 15 May 2008 at 7:18Attachments:
The text was updated successfully, but these errors were encountered: