waltligon / orangefs

Official repository for PVFS/OrangeFS
Other
62 stars 7 forks source link

Add interface item to posix-pvfs to check if a path or file descrtiptor is valid PVFS #54

Open xPSUzSBHotUOHS6G8nkoScBq opened 6 years ago

xPSUzSBHotUOHS6G8nkoScBq commented 6 years ago

Imported from Trac

ID: 54 Type: enhancement Time: 1432230821 Change time: 1432230821 Component: User Interface Severity: None Priority: minor Owner: parl Reporter: walt Cc: Version: latest Milestone: Status: new Resolution: None Summary: Add interface item to posix-pvfs to check if a path or file descrtiptor is valid PVFS Keywords:

posix-pvfs interface only operates on PVFS volumes - need to be sure that errors in this are handled cleanly. More importantly a program must be able to know if a path or fd is PVFS or not. This should be a fairly simple addition, though it may lead to multiple lookups (once to see if a path is valid, and again when the path is used).

An alternative would be to let some tasts handle non-PVFS when they can. Particularly "f" ops that run on a file descriptor this would be easy and efficient since it has already been looked up. Not sure its a good idea though.