[plt-scheme] Cross device link?

From: Robby Findler (robby.findler at gmail.com)
Date: Thu Mar 8 14:12:40 EST 2007

I'm not sure why it isn't handled, but the utility of the error number
is probably the same as it would be in C -- a little more information
about what's gone wrong. Probably reading some header file, equipped
with that number, would tell you if, indeed, your theory is correct
about why rename-file-or-directory failed.

>From the not much consolation desk,
Robby

On 3/8/07, Paulo J. Matos <pocm at soton.ac.uk> wrote:
> Hello all,
>
> When using rename-file-or-directory I'm getting:
> rename-file-or-directory: cannot rename file or directory:
> /mnt/camera/dcim/100olymp/p3080001.jpg to:
> /home/pmatos/fotos/pod/pod-832007.jpg (Invalid cross-device link;
> errno=18)
>
> to do this:
> mv /mnt/camera/dcim/100olymp/p3080001.jpg /home/pmatos/fotos/pod/pod-832007.jpg
> which works flawlessly.
>
> I can't understand what's wrong with rename-file-or-directory. My
> guess is that the problem is because the files are in different
> devices but that should be transparent. Moreover, what is errno=18?
> This seems that some error code from the C part is creeping onto
> Scheme. Since as far as I know this error number is useless, there's
> no reason to have it there.
>
> Cheers,
> --
> Paulo Jorge Matos - pocm at soton.ac.uk
> http://www.personal.soton.ac.uk/pocm
> PhD Student @ ECS
> University of Southampton, UK
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>


Posted on the users mailing list.