glusterfs  8.2
About: GlusterFS is a network/cluster filesystem. The storage server (or each in a cluster) runs glusterfsd and the clients use mount command or glusterfs client to mount the exported filesystem. Release series 8.x (latest version).
  Fossies Dox: glusterfs-8.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

glfs-handleops.c File Reference
#include "glfs-internal.h"
#include "glfs-mem-types.h"
#include <glusterfs/syncop.h>
#include "glfs.h"
#include "glfs-handles.h"
#include "gfapi-messages.h"
Include dependency graph for glfs-handleops.c:

Go to the source code of this file.

Functions

int glfs_listxattr_process (void *value, size_t size, dict_t *xattr)
 
void glfs_iatt_from_stat (struct stat *stat, int valid, struct iatt *iatt, int *glvalid)
 
struct glfs_objectpub_glfs_h_lookupat (struct glfs *fs, struct glfs_object *parent, const char *path, struct stat *stat, int follow)
 
struct glfs_objectpub_glfs_h_lookupat34 (struct glfs *fs, struct glfs_object *parent, const char *path, struct stat *stat)
 
int pub_glfs_h_statfs (struct glfs *fs, struct glfs_object *object, struct statvfs *statvfs)
 
int pub_glfs_h_stat (struct glfs *fs, struct glfs_object *object, struct stat *stat)
 
int pub_glfs_h_getattrs (struct glfs *fs, struct glfs_object *object, struct stat *stat)
 
int glfs_h_getxattrs_common (struct glfs *fs, struct glfs_object *object, dict_t **xattr, const char *name, bool is_listxattr)
 
int pub_glfs_h_getxattrs (struct glfs *fs, struct glfs_object *object, const char *name, void *value, size_t size)
 
int pub_glfs_h_setattrs (struct glfs *fs, struct glfs_object *object, struct stat *stat, int valid)
 
int pub_glfs_h_setxattrs (struct glfs *fs, struct glfs_object *object, const char *name, const void *value, size_t size, int flags)
 
int pub_glfs_h_removexattrs (struct glfs *fs, struct glfs_object *object, const char *name)
 
struct glfs_fdpub_glfs_h_open (struct glfs *fs, struct glfs_object *object, int flags)
 
struct glfs_objectpub_glfs_h_creat (struct glfs *fs, struct glfs_object *parent, const char *path, int flags, mode_t mode, struct stat *stat)
 
struct glfs_objectpub_glfs_h_creat_open (struct glfs *fs, struct glfs_object *parent, const char *path, int flags, mode_t mode, struct stat *stat, struct glfs_fd **out_fd)
 
struct glfs_objectpub_glfs_h_mkdir (struct glfs *fs, struct glfs_object *parent, const char *path, mode_t mode, struct stat *stat)
 
struct glfs_objectpub_glfs_h_mknod (struct glfs *fs, struct glfs_object *parent, const char *path, mode_t mode, dev_t dev, struct stat *stat)
 
int pub_glfs_h_unlink (struct glfs *fs, struct glfs_object *parent, const char *path)
 
struct glfs_fdpub_glfs_h_opendir (struct glfs *fs, struct glfs_object *object)
 
int pub_glfs_h_access (struct glfs *fs, struct glfs_object *object, int mask)
 
ssize_t pub_glfs_h_extract_handle (struct glfs_object *object, unsigned char *handle, int len)
 
struct glfs_objectpub_glfs_h_create_from_handle (struct glfs *fs, unsigned char *handle, int len, struct stat *stat)
 
int pub_glfs_h_close (struct glfs_object *object)
 
int pub_glfs_h_truncate (struct glfs *fs, struct glfs_object *object, off_t offset)
 
struct glfs_objectpub_glfs_h_symlink (struct glfs *fs, struct glfs_object *parent, const char *name, const char *data, struct stat *stat)
 
int pub_glfs_h_readlink (struct glfs *fs, struct glfs_object *object, char *buf, size_t bufsiz)
 
int pub_glfs_h_link (struct glfs *fs, struct glfs_object *linksrc, struct glfs_object *parent, const char *name)
 
int pub_glfs_h_rename (struct glfs *fs, struct glfs_object *olddir, const char *oldname, struct glfs_object *newdir, const char *newname)
 
struct glfs_objectglfs_h_find_handle (struct glfs *fs, unsigned char *handle, int len)
 
static void glfs_free_upcall_inode (void *to_free)
 
int glfs_h_poll_cache_invalidation (struct glfs *fs, struct glfs_upcall *up_arg, struct gf_upcall *upcall_data)
 
void glfs_release_upcall (void *ptr)
 
int pub_glfs_h_poll_upcall (struct glfs *fs, struct glfs_upcall **up_arg)
 
int pub_glfs_h_poll_upcall370 (struct glfs *fs, struct glfs_callback_arg *up_arg)
 
acl_t pub_glfs_h_acl_get (struct glfs *fs, struct glfs_object *object, const acl_type_t type)
 
int pub_glfs_h_acl_set (struct glfs *fs, struct glfs_object *object, const acl_type_t type, const acl_t acl)
 
ssize_t pub_glfs_h_anonymous_read (struct glfs *fs, struct glfs_object *object, const void *buf, size_t count, off_t offset)
 
ssize_t pub_glfs_h_anonymous_write (struct glfs *fs, struct glfs_object *object, const void *buf, size_t count, off_t offset)
 
struct glfs_objectpub_glfs_object_copy (struct glfs_object *src)
 
struct glfs_objectpub_glfs_xreaddirplus_get_object (struct glfs_xreaddirp_stat *xstat)
 
int pub_glfs_h_lease (struct glfs *fs, struct glfs_object *object, struct glfs_lease *lease)
 

Variables

static bool log_upcall370 = true
 

Function Documentation

◆ glfs_free_upcall_inode()

static void glfs_free_upcall_inode ( void *  to_free)
static

◆ glfs_h_find_handle()

◆ glfs_h_getxattrs_common()

int glfs_h_getxattrs_common ( struct glfs fs,
struct glfs_object object,
dict_t **  xattr,
const char *  name,
bool  is_listxattr 
)

◆ glfs_h_poll_cache_invalidation()

◆ glfs_iatt_from_stat()

◆ glfs_listxattr_process()

int glfs_listxattr_process ( void *  value,
size_t  size,
dict_t xattr 
)

Referenced by pub_glfs_h_getxattrs().

◆ glfs_release_upcall()

void glfs_release_upcall ( void *  ptr)

Definition at line 2150 of file glfs-handleops.c.

References glfs_upcall::event, and glfs_upcall::free_event.

Referenced by pub_glfs_h_poll_upcall().

◆ pub_glfs_h_access()

◆ pub_glfs_h_acl_get()

acl_t pub_glfs_h_acl_get ( struct glfs fs,
struct glfs_object object,
const acl_type_t  type 
)

Definition at line 2487 of file glfs-handleops.c.

References syncdaemon.resource::ENOTSUP.

◆ pub_glfs_h_acl_set()

int pub_glfs_h_acl_set ( struct glfs fs,
struct glfs_object object,
const acl_type_t  type,
const acl_t  acl 
)

Definition at line 2496 of file glfs-handleops.c.

References syncdaemon.resource::ENOTSUP.

◆ pub_glfs_h_anonymous_read()

ssize_t pub_glfs_h_anonymous_read ( struct glfs fs,
struct glfs_object object,
const void *  buf,
size_t  count,
off_t  offset 
)

Definition at line 2507 of file glfs-handleops.c.

References glfs_anonymous_preadv().

◆ pub_glfs_h_anonymous_write()

ssize_t pub_glfs_h_anonymous_write ( struct glfs fs,
struct glfs_object object,
const void *  buf,
size_t  count,
off_t  offset 
)

Definition at line 2532 of file glfs-handleops.c.

References glfs_anonymous_pwritev().

◆ pub_glfs_h_close()

int pub_glfs_h_close ( struct glfs_object object)

Definition at line 1529 of file glfs-handleops.c.

References GF_FREE, inode_forget(), and inode_unref().

Referenced by pub_glfs_h_symlink().

◆ pub_glfs_h_creat()

◆ pub_glfs_h_creat_open()

◆ pub_glfs_h_create_from_handle()

◆ pub_glfs_h_extract_handle()

ssize_t pub_glfs_h_extract_handle ( struct glfs_object object,
unsigned char *  handle,
int  len 
)

Definition at line 1375 of file glfs-handleops.c.

References GFAPI_HANDLE_LENGTH, and out.

◆ pub_glfs_h_getattrs()

int pub_glfs_h_getattrs ( struct glfs fs,
struct glfs_object object,
struct stat *  stat 
)

◆ pub_glfs_h_getxattrs()

int pub_glfs_h_getxattrs ( struct glfs fs,
struct glfs_object object,
const char *  name,
void *  value,
size_t  size 
)

◆ pub_glfs_h_lease()

◆ pub_glfs_h_link()

◆ pub_glfs_h_lookupat()

struct glfs_object* pub_glfs_h_lookupat ( struct glfs fs,
struct glfs_object parent,
const char *  path,
struct stat *  stat,
int  follow 
)

◆ pub_glfs_h_lookupat34()

struct glfs_object* pub_glfs_h_lookupat34 ( struct glfs fs,
struct glfs_object parent,
const char *  path,
struct stat *  stat 
)

Definition at line 132 of file glfs-handleops.c.

References pub_glfs_h_lookupat().

◆ pub_glfs_h_mkdir()

◆ pub_glfs_h_mknod()

◆ pub_glfs_h_open()

◆ pub_glfs_h_opendir()

◆ pub_glfs_h_poll_upcall()

◆ pub_glfs_h_poll_upcall370()

◆ pub_glfs_h_readlink()

int pub_glfs_h_readlink ( struct glfs fs,
struct glfs_object object,
char *  buf,
size_t  bufsiz 
)

◆ pub_glfs_h_removexattrs()

int pub_glfs_h_removexattrs ( struct glfs fs,
struct glfs_object object,
const char *  name 
)

◆ pub_glfs_h_rename()

◆ pub_glfs_h_setattrs()

int pub_glfs_h_setattrs ( struct glfs fs,
struct glfs_object object,
struct stat *  stat,
int  valid 
)

◆ pub_glfs_h_setxattrs()

int pub_glfs_h_setxattrs ( struct glfs fs,
struct glfs_object object,
const char *  name,
const void *  value,
size_t  size,
int  flags 
)

◆ pub_glfs_h_stat()

◆ pub_glfs_h_statfs()

int pub_glfs_h_statfs ( struct glfs fs,
struct glfs_object object,
struct statvfs *  statvfs 
)

◆ pub_glfs_h_symlink()

◆ pub_glfs_h_truncate()

◆ pub_glfs_h_unlink()

◆ pub_glfs_object_copy()

◆ pub_glfs_xreaddirplus_get_object()

struct glfs_object* pub_glfs_xreaddirplus_get_object ( struct glfs_xreaddirp_stat xstat)

Variable Documentation

◆ log_upcall370

bool log_upcall370 = true
static

Definition at line 2296 of file glfs-handleops.c.

Referenced by pub_glfs_h_poll_upcall370().