vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Get the above error when moving a file from a NFS mounted directory to one that is not. The directories have different owners, but both are members of the same group. Directory is mounted from a directory exported by Hummingbird NFS server on NT. Any ideas what the problem is. The mv returns 0 so I can ignore the message in a script, but this message is also causing problems to a 3rd party application that is using a java renameTo command to move the file JL |
| ||||
| johnleslie@madasafish.com (John Leslie) wrote in news:4412dd31.0312090857.76dfd779@posting.google.c om: > Get the above error when moving a file from a NFS mounted directory to > one that is not. > > The directories have different owners, but both are members of the > same group. > > Directory is mounted from a directory exported by Hummingbird NFS > server on NT. > > Any ideas what the problem is. Yes, renameTo only works if the new name is in the same filesystem. It just links the file onder the new name and unlinks the old name. Plenty of people stumbled uppon this one. You have to copy the file to the new location and remove the old one. Also check: http://onionnetworks.com/fec/javadoc.../RAF.html#rena meTo(java.io.File) -- Doing AIX support was the most monty-pythonesque activity available at the time. Eagerly awaiting my thin chocolat mint. |