Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for AlignedBlock (0.17 sec)

  1. internal/ioutil/ioutil.go

    )
    
    // aligned sync.Pool's
    var (
    	ODirectPoolLarge = sync.Pool{
    		New: func() interface{} {
    			b := disk.AlignedBlock(LargeBlock)
    			return &b
    		},
    	}
    	ODirectPoolSmall = sync.Pool{
    		New: func() interface{} {
    			b := disk.AlignedBlock(SmallBlock)
    			return &b
    		},
    	}
    )
    
    // WriteOnCloser implements io.WriteCloser and always
    Go
    - Registered: Sun May 05 19:28:20 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 May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
Back to top