[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Default file processing for refile -- mv or ln?
From: |
Ralph Corderoy |
Subject: |
Re: Default file processing for refile -- mv or ln? |
Date: |
Fri, 08 May 2020 13:51:28 +0100 |
Hi Bob,
> What might make refile(1mh) apply the non-default ln(1) to
> refiled message files -- as if the -link switch had been
> specified -- instead of the default mv(1) -- as if -nolink had
> been specified? And only sometimes; not always.
refile(1)'s -nolink doesn't stop link(2) being used IIRC. link() is
always attempted, falling back on copying if source and destination
folders are on different filesystems. strace(1) should confirm this.
-link/-nolink alters whether the inode which is the source is left alone
afterwards or removed. And removing is the normal method of renaming or
rmmproc.
-unlink actually removes the source inode rather than ‘rmm’ it.
Perhaps that will allow you to spot a pattern.
--
Cheers, Ralph.