https://sourceware.org/bugzilla/show_bug.cgi?id=22540

            Bug ID: 22540
           Summary: Gold fails when output file is lying on ZFS
           Product: binutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: vladimir at kondratyev dot su
                CC: ian at airs dot com
  Target Milestone: ---

Created attachment 10658
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10658&action=edit
gold-output.cc.patch

Some Copy-On-Write filesystems like recent ZFS does not support posix_fallocate
as  it cannot provide guarantee that overwrites would never fail due to the
lack
 of free space. In that case EINVAL is used to report that the underlying file
system does not support the operation (POSIX.1-2008) that breaks gold if output
file is lying on such a filesystem.
Fix gold with falling back to ftruncate(2) if posix_fallocate(2) returned
EINVAL but correct offset and len parameters was passed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to