]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librgw: introduce RGW_LOOKUP_FLAG_CREATE
authorMatt Benjamin <mbenjamin@redhat.com>
Sun, 8 Nov 2015 23:54:58 +0000 (18:54 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:05:50 +0000 (12:05 -0500)
commit857aa1e337df6b7cf5d21e311dce9576e27ea3a9
tree3164e1a29f27f00aa80f2e616357a564e0f7514b
parent7f482c05b287ffc9ee51bf445878044e0026b0f3
librgw: introduce RGW_LOOKUP_FLAG_CREATE

The current API relies on rgw_lookup and rgw_lookup_filehandle to
return file handle instances, and like POSIX, needs to deal in some
way with the NFS/POSIX open-for-create concept.

For now, allow rgw_lookup to return the canonical instance for an
object being created, i.e., if the option RGW_LOOKUP_FLAG_CREATE
is passed.  (I added an RGW_OPEN_FLAG_CREATE also, but it doesn't
do anything.)

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/include/rados/rgw_file.h
src/rgw/rgw_file.cc
src/test/librgw_file_gp.cc