[Bug 201506] bsdtar fails on zfs compressed and/or sparse files

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jul 12 20:38:28 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201506

            Bug ID: 201506
           Summary: bsdtar fails on zfs compressed and/or sparse files
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: marcus at blazingdot.com

Test case 1: sparse file

  # truncate -s10g foo
  # echo "bar" >> foo
  # tar cf - foo | tar tf - 
  foo
  tar: Truncated input file (needed 10737418240 bytes, only 8192 available)
  tar: Error exit delayed from previous errors.

Test case 2: zfs compressed file
  (this is run on a zfs filesystem with lz4 compression turned on)

  # dd if=/dev/zero of=derp bs=1m count=10k
  # echo foo >> derp
  # tar cf - derp | tar tf -
  derp
  tar: Truncated input file (needed 10737418240 bytes, only 8192 available)
  tar: Error exit delayed from previous errors.

In a real-world scenario, I encountered this bug when restoring a large VM disk
image from a tape. The source image was on a compressed zfs filesystem.

These issues may have been fixed upstream. See:

  https://github.com/libarchive/libarchive/issues/464

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list