Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for alignedBuf (0.16 sec)

  1. internal/ioutil/ioutil.go

    // the file opened for writes with syscall.O_DIRECT flag.
    func CopyAligned(w io.Writer, r io.Reader, alignedBuf []byte, totalSize int64, file *os.File) (int64, error) {
    	if totalSize == 0 {
    		return 0, nil
    	}
    
    	var written int64
    	for {
    		buf := alignedBuf
    		if totalSize > 0 {
    			remaining := totalSize - written
    			if remaining < int64(len(buf)) {
    				buf = buf[:remaining]
    			}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 11:26:59 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    	xlStorageFormatFile = "xl.meta"
    
    	// XL metadata file backup file carries previous per object metadata.
    	xlStorageFormatFileBackup = "xl.meta.bkp"
    )
    
    var alignedBuf []byte
    
    func init() {
    	alignedBuf = disk.AlignedBlock(xioutil.DirectioAlignSize)
    	_, _ = rand.Read(alignedBuf)
    }
    
    // isValidVolname verifies a volname name in accordance with object
    // layer requirements.
    func isValidVolname(volname string) bool {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
Back to top