[PVFS-developers] libpvfs: rename bug
Porter Don
PorterDE at mercury.hendrix.edu
Tue Mar 2 14:50:39 EST 2004
In the pvfs_rename code, there is a check against cross-device links.
However, in certain cases, particularly directories, if the file does not
exist, its fs_ino comes back from pvfs_detect as zero. This doesn't match
the fs_ino of the original file, so the call fails with an EXDEV.
The real issue is probably why pvfs_detect is not consitantly filling in the
right values for the fs_ino, but it isn't apparent to me. Any thoughts? I
can make renames always work correctly by checking if oldfs_ino and
newfs_ino are zero before comparing them. See attached patch.
Any thoughts/suggestions on a better way to fix this are quite welcome.
Hope my explanation was clear.
Thanks,
don
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rename-1.6.3.patch
Type: application/octet-stream
Size: 507 bytes
Desc: not available
Url : http://www.beowulf-underground.org/pipermail/pvfs-developers/attachments/20040302/85970c90/rename-1.6.3.obj
More information about the PVFS-developers
mailing list