[plt-scheme] Cross device link?

From: Paulo J. Matos (pocm at soton.ac.uk)
Date: Thu Mar 8 14:05:46 EST 2007

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


Posted on the users mailing list.