Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for setDeleteAttribute (0.09 sec)

  1. cmd/erasure-sets.go

    					if ok {
    						_, commonDeletes := calcCommonWritesDeletes(currentDisksInfo[m], (s.setDriveCount+1)/2)
    						xldisk.totalDeletes.Store(commonDeletes)
    						xldisk.storage.setDeleteAttribute(commonDeletes)
    
    						if globalDriveMonitoring {
    							go xldisk.monitorDiskWritable(xldisk.diskCtx)
    						}
    					}
    				} else {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 37K bytes
    - Viewed (1)
  2. cmd/xl-storage.go

    	if err != nil {
    		// We start off with '0' if we can read the attributes
    		return 0
    	}
    
    	return binary.LittleEndian.Uint64(buf[:8])
    }
    
    func (s *xlStorage) setDeleteAttribute(deleteCount uint64) error {
    	attr := "user.total_deletes"
    
    	data := make([]byte, 8)
    	binary.LittleEndian.PutUint64(data, deleteCount)
    	return xattr.LSet(s.formatFile, attr, data)
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Jun 13 11:33:47 UTC 2025
    - 91.7K bytes
    - Viewed (0)
Back to top