sftp does not allow rename across file system

Ted Smith ted_smith1 at verizon.net
Fri Jan 18 12:10:47 EST 2013


Would it be possible for openssh to simulate the desired  outcome by 
doing the copying/removal
for renaming commnd, when detecting the cross device path?
To client, it does not make difference so it would not seem to break the 
protocol
and transparent.


On 1/17/2013 7:48 PM, Damien Miller wrote:
> On Thu, 17 Jan 2013, Ted Smith wrote:
>
>> Hello:
>> I got the error
>> EXDEV (Invalid cross-device link)
>> when renaming one file to another directory that is actually mounting another
>> file system.
> This is expected behaviour at the moment. The sftp protocol doesn't have
> a mechanism to do cross-device rename (a misnomer, since it isn't renaming
> but copying).
>
> Fixing this will require a protocol extension. It isn't hard, but someone
> needs to do the work.
>
> -d
>



More information about the openssh-unix-dev mailing list