mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +00:00
Merge pull request #48828 from yuvalif/wip-yuval-cython-fails-clang16
rgw/file: change function signature to match the one generated by cython reviewed-by: cbodley, mattbenjamin
This commit is contained in:
commit
f4612cee8f
@ -221,7 +221,7 @@ int rgw_unlink(struct rgw_fs *rgw_fs,
|
||||
/*
|
||||
read directory content
|
||||
*/
|
||||
typedef bool (*rgw_readdir_cb)(const char *name, void *arg, uint64_t offset,
|
||||
typedef int (*rgw_readdir_cb)(const char *name, void *arg, uint64_t offset,
|
||||
struct stat *st, uint32_t mask,
|
||||
uint32_t flags);
|
||||
|
||||
|
@ -73,7 +73,7 @@ TEST(LibRGW, GETATTR_ROOT) {
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
static bool r1_cb(const char* name, void *arg, uint64_t offset,
|
||||
static int r1_cb(const char* name, void *arg, uint64_t offset,
|
||||
struct stat* st, uint32_t st_mask,
|
||||
uint32_t flags) {
|
||||
// don't need arg--it would point to fids1
|
||||
@ -137,7 +137,7 @@ TEST(LibRGW, GETATTR_BUCKETS) {
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
static bool r2_cb(const char* name, void *arg, uint64_t offset,
|
||||
static int r2_cb(const char* name, void *arg, uint64_t offset,
|
||||
struct stat* st, uint32_t st_mask,
|
||||
uint32_t flags) {
|
||||
std::vector<fid_type>& obj_vector = *(static_cast<std::vector<fid_type>*>(arg));
|
||||
|
@ -213,7 +213,7 @@ TEST(LibRGW, LOOKUP_BUCKET) {
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
static bool r2_cb(const char* name, void *arg, uint64_t offset,
|
||||
static int r2_cb(const char* name, void *arg, uint64_t offset,
|
||||
struct stat *st, uint32_t st_mask,
|
||||
uint32_t flags) {
|
||||
// don't need arg--it would point to fids
|
||||
|
@ -292,7 +292,7 @@ TEST(LibRGW, MARKER1_SETUP_OBJECTS)
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
static bool r2_cb(const char* name, void *arg, uint64_t offset,
|
||||
static int r2_cb(const char* name, void *arg, uint64_t offset,
|
||||
struct stat* st, uint32_t st_mask,
|
||||
uint32_t flags) {
|
||||
dirent_vec& dvec =
|
||||
|
@ -873,7 +873,7 @@ TEST(LibRGW, RELEASE_DIRS1) {
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
static bool r1_cb(const char* name, void *arg, uint64_t offset,
|
||||
static int r1_cb(const char* name, void *arg, uint64_t offset,
|
||||
struct stat* st, uint32_t st_mask,
|
||||
uint32_t flags) {
|
||||
struct rgw_file_handle* parent_fh
|
||||
@ -1031,7 +1031,7 @@ TEST(LibRGW, MARKER1_SETUP_OBJECTS)
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
static bool r2_cb(const char* name, void *arg, uint64_t offset,
|
||||
static int r2_cb(const char* name, void *arg, uint64_t offset,
|
||||
struct stat* st, uint32_t st_mask,
|
||||
uint32_t flags) {
|
||||
dirent_vec& dvec =
|
||||
|
Loading…
Reference in New Issue
Block a user