diff options
author | Shehjar Tikoo <shehjart@zresearch.com> | 2009-04-07 05:35:32 -0700 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-04-08 15:05:50 +0530 |
commit | d4ab91b1f254a21cac538fdffa7ff37db10ae83c (patch) | |
tree | 4f5bb822e623b4dae9e7be7b36a144820711dd33 /.gitignore | |
parent | e8282fd242ba4061a40b992ebe4549b4dd23fa11 (diff) |
libglusterfsclient: Handle O_CREAT on lookup failure
On lookup failure, if O_CREAT is required, then we must:
1. explicitly lookup the parent directory.
2. create a new inode for the new file being opened.
This special case is required for file creation because:
1. We cannot depend on the previous lookup to have reliably looked up
the parent inode.
2. inode for the new file does not exist in the itable.
Patch adapted from Raghu's original fix.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions