[PVFS-developers] libpvfs bug
Porter Don
PorterDE at mercury.hendrix.edu
Tue Feb 17 17:29:15 EST 2004
In debugging an application that uses pvfs, I noticed that there were a
number of messages in /varlog/messages from the pvfs kernel. In
investigating further, I found two places where the library assumes that it
should only be used if the file doesn't exist on the underlying filesystem.
This is problematic when there happens to be a file with the given name on
the local disk. It seems like the semantic should be to always go to pvfs
if you are in a directory mentionen in the pvfstab.
So I ran my application in strace and found two spots where this was
happening. There may be more in calls I am not using. Anyway, the first is
that pvfs_detect doesn't check against the pvfstab during canonicalize. The
second is in pvfs_lstat. It lstat's first, then checks if you wish to use
pvfs.
Attached is a patch against cvs that should correct this behaviour.
Let me know if I have missed something.
Don
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lib-detect-fix-1.6.3.patch
Type: application/octet-stream
Size: 2126 bytes
Desc: not available
Url : http://www.beowulf-underground.org/pipermail/pvfs-developers/attachments/20040217/a2fbd72d/lib-detect-fix-1.6.3.obj
More information about the PVFS-developers
mailing list