Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for O_SYNC (0.28 sec)

  1. cmd/erasure-healing-common_test.go

    					// appears in outDatedDisks.
    					tamperedIndex = index
    					filePath := pathJoin(erasureDisks[index].String(), bucket, object, fi.DataDir, "part.1")
    					f, err := os.OpenFile(filePath, os.O_WRONLY|os.O_SYNC, 0)
    					if err != nil {
    						t.Fatalf("Failed to open %s: %s\n", filePath, err)
    					}
    					f.WriteString("oops") // Will cause bitrot error
    					f.Close()
    					break
    				}
    
    			}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 23K bytes
    - Viewed (0)
  2. internal/logger/logrotate.go

    		}
    	}
    
    	go w.listen()
    
    	return w, nil
    }
    
    func newFile(path string) (*os.File, error) {
    	return os.OpenFile(path, os.O_WRONLY|os.O_TRUNC|os.O_CREATE|os.O_SYNC, 0o666)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. cmd/globals.go

    	globalBackgroundHealState   = newHealState(GlobalContext, false)
    
    	globalMRFState = mrfState{
    		opCh: make(chan partialOperation, mrfOpsQueueSize),
    	}
    
    	// If writes to FS backend should be O_SYNC.
    	globalFSOSync bool
    
    	globalProxyEndpoints []ProxyEndpoint
    
    	globalInternodeTransport http.RoundTripper
    
    	globalRemoteTargetTransport http.RoundTripper
    
    	globalDNSCache = &dnscache.Resolver{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 11:58:12 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. src/os/file.go

    	O_APPEND int = syscall.O_APPEND // append data to the file when writing.
    	O_CREATE int = syscall.O_CREAT  // create a new file if none exists.
    	O_EXCL   int = syscall.O_EXCL   // used with O_CREATE, file must not exist.
    	O_SYNC   int = syscall.O_SYNC   // open for synchronous I/O.
    	O_TRUNC  int = syscall.O_TRUNC  // truncate regular writable file when opened.
    )
    
    // Seek whence values.
    //
    // Deprecated: Use io.SeekStart, io.SeekCurrent, and io.SeekEnd.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:37 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_386.go

    	O_NOCTTY                         = 0x100
    	O_NOFOLLOW                       = 0x20000
    	O_NONBLOCK                       = 0x800
    	O_PATH                           = 0x200000
    	O_RSYNC                          = 0x101000
    	O_SYNC                           = 0x101000
    	O_TMPFILE                        = 0x410000
    	O_TRUNC                          = 0x200
    	PARENB                           = 0x100
    	PARODD                           = 0x200
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go

    	O_NOCTTY                         = 0x100
    	O_NOFOLLOW                       = 0x8000
    	O_NONBLOCK                       = 0x800
    	O_PATH                           = 0x200000
    	O_RSYNC                          = 0x101000
    	O_SYNC                           = 0x101000
    	O_TMPFILE                        = 0x404000
    	O_TRUNC                          = 0x200
    	PARENB                           = 0x100
    	PARODD                           = 0x200
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go

    	O_NOCTTY                         = 0x100
    	O_NOFOLLOW                       = 0x20000
    	O_NONBLOCK                       = 0x800
    	O_PATH                           = 0x200000
    	O_RSYNC                          = 0x101000
    	O_SYNC                           = 0x101000
    	O_TMPFILE                        = 0x410000
    	O_TRUNC                          = 0x200
    	PARENB                           = 0x100
    	PARODD                           = 0x200
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  8. src/syscall/syscall_aix.go

    		*wstatus = WaitStatus(status)
    	}
    	return
    }
    
    //sys	fsyncRange(fd int, how int, start int64, length int64) (err error) = fsync_range
    
    func Fsync(fd int) error {
    	return fsyncRange(fd, O_SYNC, 0, 0)
    }
    
    /*
     * Socket
     */
    //sys	bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
    //sys	connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/zerrors_zos_s390x.go

    	O_LARGEFILE                     = 0x0400
    	O_NDELAY                        = 0x4
    	O_NONBLOCK                      = 0x04
    	O_RDONLY                        = 0x02
    	O_RDWR                          = 0x03
    	O_SYNC                          = 0x0100
    	O_TRUNC                         = 0x10
    	O_WRONLY                        = 0x01
    	O_NOCTTY                        = 0x20
    	OPOST                           = 0x0001
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  10. src/syscall/fs_wasip1.go

    	case O_WRONLY:
    		rights = fileRights & ^readRights
    	case O_RDWR:
    		rights = fileRights
    	}
    
    	var fdflags fdflags
    	if (openmode & O_APPEND) != 0 {
    		fdflags |= FDFLAG_APPEND
    	}
    	if (openmode & O_SYNC) != 0 {
    		fdflags |= FDFLAG_SYNC
    	}
    
    	var fd int32
    	errno := path_open(
    		dirFd,
    		LOOKUP_SYMLINK_FOLLOW,
    		pathPtr,
    		pathLen,
    		oflags,
    		rights,
    		fileRights,
    		fdflags,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24.1K bytes
    - Viewed (0)
Back to top