Skip to main content

atomic_exchange

Function atomic_exchange 

Source
pub fn atomic_exchange(temp: &Path, target: &Path) -> Result<()>
Expand description

Attempts to atomically exchange the contents of temp and target using XFS_IOC_EXCHANGE_RANGE. This preserves the inode number and hardlinks of target.