librgw: add pseudo() accessor

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
This commit is contained in:
Matt Benjamin 2015-11-30 17:00:21 -05:00
parent fc505f4a12
commit 3e6e4ed25c

View File

@ -284,6 +284,7 @@ namespace rgw {
bool is_bucket() const { return (fh.fh_type == RGW_FS_TYPE_DIRECTORY); }
bool is_object() const { return (fh.fh_type == RGW_FS_TYPE_FILE); }
bool creating() const { return flags & FLAG_CREATE; }
bool pseudo() const { return flags & FLAG_PSEUDO; }
void open() {
flags |= FLAG_OPEN;