mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	Implement support for Linux's RENAME_* flags (for renameat2). Aside from being quite useful for userspace (providing race-free ways to exchange paths and implement mv --no-clobber), they are used by overlayfs and are thus required in order to use overlayfs-on-ZFS. In order for us to represent the new renameat2(2) flags in the ZIL, we create two new transaction types for the two flags which need transactional-level support (RENAME_EXCHANGE and RENAME_WHITEOUT). RENAME_NOREPLACE does not need any ZIL support because we know that if the operation succeeded before creating the ZIL entry, there was no file to be clobbered and thus it can be treated as a regular TX_RENAME. Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Pavel Snajdr <snajpa@snajpa.net> Signed-off-by: Aleksa Sarai <cyphar@cyphar.com> Closes #12209 Closes #14070
		
			
				
	
	
		
			52 lines
		
	
	
		
			670 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			670 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
/badsend
 | 
						|
/btree_test
 | 
						|
/chg_usr_exec
 | 
						|
/devname2devid
 | 
						|
/dir_rd_update
 | 
						|
/draid
 | 
						|
/file_fadvise
 | 
						|
/file_append
 | 
						|
/file_check
 | 
						|
/file_trunc
 | 
						|
/file_write
 | 
						|
/get_diff
 | 
						|
/getversion
 | 
						|
/largest_file
 | 
						|
/libzfs_input_check
 | 
						|
/mkbusy
 | 
						|
/mkfile
 | 
						|
/mkfiles
 | 
						|
/mktree
 | 
						|
/mmap_exec
 | 
						|
/mmap_libaio
 | 
						|
/mmap_seek
 | 
						|
/mmap_sync
 | 
						|
/mmapwrite
 | 
						|
/nvlist_to_lua
 | 
						|
/randfree_file
 | 
						|
/randwritecomp
 | 
						|
/read_dos_attributes
 | 
						|
/readmmap
 | 
						|
/renameat2
 | 
						|
/rename_dir
 | 
						|
/rm_lnkcnt_zero_file
 | 
						|
/send_doall
 | 
						|
/stride_dd
 | 
						|
/threadsappend
 | 
						|
/user_ns_exec
 | 
						|
/write_dos_attributes
 | 
						|
/xattrtest
 | 
						|
/zed_fd_spill-zedlet
 | 
						|
/suid_write_to_file
 | 
						|
/cp_files
 | 
						|
/ctime
 | 
						|
/truncate_test
 | 
						|
/ereports
 | 
						|
/zfs_diff-socket
 | 
						|
/dosmode_readonly_write
 | 
						|
/blake3_test
 | 
						|
/edonr_test
 | 
						|
/skein_test
 | 
						|
/sha2_test
 | 
						|
/idmap_util
 |