You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							16 lines
						
					
					
						
							268 B
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							16 lines
						
					
					
						
							268 B
						
					
					
				| package filer | |
| 
 | |
| import ( | |
| 	"github.com/seaweedfs/seaweedfs/weed/util" | |
| ) | |
| 
 | |
| const ( | |
| 	HARD_LINK_MARKER = '\x01' | |
| ) | |
| 
 | |
| type HardLinkId []byte // 16 bytes + 1 marker byte | |
|  | |
| func NewHardLinkId() HardLinkId { | |
| 	bytes := append(util.RandomBytes(16), HARD_LINK_MARKER) | |
| 	return bytes | |
| }
 |