"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libglusterfs/src/common-utils.c" between
glusterfs-8.4.tar.gz and glusterfs-8.5.tar.gz

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.

common-utils.c  (glusterfs-8.4):common-utils.c  (glusterfs-8.5)
skipping to change at line 53 skipping to change at line 53
#include "glusterfs/revision.h" #include "glusterfs/revision.h"
#include "glusterfs/glusterfs.h" #include "glusterfs/glusterfs.h"
#include "glusterfs/stack.h" #include "glusterfs/stack.h"
#include "glusterfs/lkowner.h" #include "glusterfs/lkowner.h"
#include "glusterfs/syscall.h" #include "glusterfs/syscall.h"
#include "glusterfs/globals.h" #include "glusterfs/globals.h"
#define XXH_INLINE_ALL #define XXH_INLINE_ALL
#include "xxhash.h" #include "xxhash.h"
#include <ifaddrs.h> #include <ifaddrs.h>
#include "glusterfs/libglusterfs-messages.h" #include "glusterfs/libglusterfs-messages.h"
#include "glusterfs/glusterfs-acl.h"
#ifdef __FreeBSD__ #ifdef __FreeBSD__
#include <pthread_np.h> #include <pthread_np.h>
#undef BIT_SET #undef BIT_SET
#endif #endif
#ifndef AI_ADDRCONFIG #ifndef AI_ADDRCONFIG
#define AI_ADDRCONFIG 0 #define AI_ADDRCONFIG 0
#endif /* AI_ADDRCONFIG */ #endif /* AI_ADDRCONFIG */
char *vol_type_str[] = { char *vol_type_str[] = {
skipping to change at line 78 skipping to change at line 79
"Tier [NOT SUPPORTED from v6.0]", "Tier [NOT SUPPORTED from v6.0]",
"Distributed-Stripe [NOT SUPPORTED from v6.0]", "Distributed-Stripe [NOT SUPPORTED from v6.0]",
"Distributed-Replicate", "Distributed-Replicate",
"Distributed-Striped-Replicate [NOT SUPPORTED from v6.0]", "Distributed-Striped-Replicate [NOT SUPPORTED from v6.0]",
"Distributed-Disperse", "Distributed-Disperse",
}; };
typedef int32_t (*rw_op_t)(int32_t fd, char *buf, int32_t size); typedef int32_t (*rw_op_t)(int32_t fd, char *buf, int32_t size);
typedef int32_t (*rwv_op_t)(int32_t fd, const struct iovec *buf, int32_t size); typedef int32_t (*rwv_op_t)(int32_t fd, const struct iovec *buf, int32_t size);
char *xattrs_to_heal[] = {"user.",
POSIX_ACL_ACCESS_XATTR,
POSIX_ACL_DEFAULT_XATTR,
QUOTA_LIMIT_KEY,
QUOTA_LIMIT_OBJECTS_KEY,
GF_SELINUX_XATTR_KEY,
GF_XATTR_MDATA_KEY,
NULL};
void void
gf_xxh64_wrapper(const unsigned char *data, size_t const len, gf_xxh64_wrapper(const unsigned char *data, size_t const len,
unsigned long long const seed, char *xxh64) unsigned long long const seed, char *xxh64)
{ {
unsigned short i = 0; unsigned short i = 0;
const unsigned short lim = GF_XXH64_DIGEST_LENGTH * 2 + 1; const unsigned short lim = GF_XXH64_DIGEST_LENGTH * 2 + 1;
XXH64_hash_t hash = 0; XXH64_hash_t hash = 0;
XXH64_canonical_t c_hash = { XXH64_canonical_t c_hash = {
{ {
0, 0,
skipping to change at line 5429 skipping to change at line 5439
req.tv_sec = nsec / GF_SEC_IN_NS; req.tv_sec = nsec / GF_SEC_IN_NS;
req.tv_nsec = nsec % GF_SEC_IN_NS; req.tv_nsec = nsec % GF_SEC_IN_NS;
do { do {
ret = nanosleep(&req, &rem); ret = nanosleep(&req, &rem);
req = rem; req = rem;
} while (ret == -1 && errno == EINTR); } while (ret == -1 && errno == EINTR);
return ret; return ret;
} }
char **
get_xattrs_to_heal()
{
return xattrs_to_heal;
}
 End of changes. 3 change blocks. 
0 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)