storage/reflink: simplify _replace_file() comment
This commit is contained in:
		
							parent
							
								
									9d5deffb13
								
							
						
					
					
						commit
						3f0286220c
					
				@ -359,7 +359,7 @@ class ReflinkVolume(qubes.storage.Volume):
 | 
				
			|||||||
def _replace_file(dst):
 | 
					def _replace_file(dst):
 | 
				
			||||||
    ''' Yield a tempfile whose name starts with dst, creating the last
 | 
					    ''' Yield a tempfile whose name starts with dst, creating the last
 | 
				
			||||||
        directory component if necessary. If the block does not raise
 | 
					        directory component if necessary. If the block does not raise
 | 
				
			||||||
        an exception, flush+fsync the tempfile and rename it to dst.
 | 
					        an exception, safely rename the tempfile to dst.
 | 
				
			||||||
    '''
 | 
					    '''
 | 
				
			||||||
    tmp_dir, prefix = os.path.split(dst + '~')
 | 
					    tmp_dir, prefix = os.path.split(dst + '~')
 | 
				
			||||||
    _make_dir(tmp_dir)
 | 
					    _make_dir(tmp_dir)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user