Method lrs::file::File::rel_exchange

Atomically exchanges two files relative to this file.

Syntax

impl File {
    fn rel_exchange<P, Q>(&self, one: P, two: Q) -> Result<(), Errno>
        where P: ToCString,
              Q: ToCString,
}

Arguments

NameDescription
one

File one.

two

File two.

Remarks

If the paths are relative, this file must be a directory and the paths will be interpreted relative to it. Both paths must refer to the same mount point or the operation fails.

Kernel versions

The required kernel version is 3.15.

See also