#define RGW_CREATE_FLAG_NONE 0x0000
int rgw_create(struct rgw_fs *rgw_fs, struct rgw_file_handle *parent_fh,
- const char *name, struct stat *st, uint32_t mask,
- struct rgw_file_handle **fh, uint32_t flags);
+ const char *name, struct stat *st, uint32_t mask,
+ struct rgw_file_handle **fh, uint32_t posix_flags,
+ uint32_t flags);
/*
create a new directory
/*
generic create -- create an empty regular file
*/
-int rgw_create(struct rgw_fs *rgw_fs,
- struct rgw_file_handle *parent_fh,
- const char *name, struct stat *st, uint32_t mask,
- struct rgw_file_handle **fh, uint32_t flags)
+int rgw_create(struct rgw_fs *rgw_fs, struct rgw_file_handle *parent_fh,
+ const char *name, struct stat *st, uint32_t mask,
+ struct rgw_file_handle **fh, uint32_t posix_flags,
+ uint32_t flags)
{
using std::get;
RGW_LOOKUP_FLAG_NONE);
if (! sf.fh) {
rc = rgw_create(fs, sf.parent_fh, sf.name.c_str(), &st, create_mask,
- &sf.fh, RGW_CREATE_FLAG_NONE);
+ &sf.fh, 0 /* posix flags */, RGW_CREATE_FLAG_NONE);
ASSERT_EQ(rc, 0);
}
sf.sync();
RGW_LOOKUP_FLAG_NONE);
if (! rf.fh) {
rc = rgw_create(fs, rf.parent_fh, rf.name.c_str(), &st, create_mask,
- &rf.fh, RGW_CREATE_FLAG_NONE);
+ &rf.fh, 0 /* posix flags */, RGW_CREATE_FLAG_NONE);
ASSERT_EQ(rc, 0);
}
rf.sync();