 51b8e468e5
			
		
	
	51b8e468e5
	
	
	
		
			
			Previously hardlinking to an unmodified file or linking to a file which was touched by not detected as modified caused a new file to be created on unpack. This new file and the original source file were not linked since no link record was created in the tar. This change addresses this by adding links for all hardlinks to a file when it is detected as changed. These links will be written after the source file is written and may occur out of order in regard to file name. Signed-off-by: Derek McGowan <derek@mcgstyle.net>
		
			
				
	
	
		
			8 lines
		
	
	
		
			94 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			94 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package fs
 | |
| 
 | |
| import "os"
 | |
| 
 | |
| func getLinkInfo(fi os.FileInfo) (uint64, bool) {
 | |
| 	return 0, false
 | |
| }
 |