• Han-Wen Nienhuys's avatar
    Filter O_APPEND from open flags. · d1b56cc4
    Han-Wen Nienhuys authored
    As of Go 1.13, os.File doesn't allow WriteAt to O_APPEND. Since the
    kernel translates writes to correct offsets, loopback does not have to
    open the file as O_APPEND.
    
    Fixes #325.
    
    Change-Id: Ib1a7026b94b5604d415ac9fbb5850842dbeffc2a
    d1b56cc4
loopback.go 5.89 KB