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: [email protected]
          Reporter: [email protected]

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.
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to