addressed the issue that the old open_file_py() in pysfs.c will always create a file and set its permission to read&write despite of what the specified mode says.
It looks like nfs4_open() should return NFS4_ENOENT(not very sure, I could be wrong) which is -2 when trying to open a nonexistent file, instead it returns 2. So need to figure out how to get the correct error code, then python wrapper can throw the corresponding excpetion
open_file_py()
in pysfs.c will always create a file and set its permission to read&write despite of what the specified mode says.nfs4_open()
should returnNFS4_ENOENT
(not very sure, I could be wrong) which is -2 when trying to open a nonexistent file, instead it returns 2. So need to figure out how to get the correct error code, then python wrapper can throw the corresponding excpetion