jssmith / ssqlite

Serverless SQLite Experiments
6 stars 3 forks source link

try to find out why nfs4_open() doesn't return the proper error code #38

Closed Chenlibo closed 5 years ago

Chenlibo commented 5 years ago
  1. 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.
  2. 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