Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 584902 Details for
Bug 822067
[27ae1677eb2a6ed4a04bda0df5cc92f2780c11ed]: glusterfs server crashed since loc->gfid was NULL
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
header file for the program attached
thread_fops.h (text/x-chdr), 3.22 KB, created by
Raghavendra Bhat
on 2012-05-16 09:01:17 UTC
(
hide
)
Description:
header file for the program attached
Filename:
MIME Type:
Creator:
Raghavendra Bhat
Created:
2012-05-16 09:01:17 UTC
Size:
3.22 KB
patch
obsolete
>#include <stdio.h> >#include <stdlib.h> >#include <pthread.h> >#include <unistd.h> >#include <sys/stat.h> >#include <sys/types.h> >#include <fcntl.h> >#include <errno.h> >#include <string.h> >#include <pthread.h> >#include <dirent.h> >#include <argp.h> >#include <libgen.h> > >void * open_thread (void *); >void * fstat_thread (void *); >void * read_thread (void *); >void * write_truncate_thread (void *); >void * chown_thread (void *); >void * open_lock_close (void *); >void * opendir_and_readdir (); > >int thread1_ret; >int thread2_ret; >int thread3_ret; >int thread4_ret; >int thread5_ret; >int thread6_ret; >int thread7_ret; > >struct open_attributes { > char *filename; > int flags; > mode_t mode; >// char *dirname; >}; > >typedef struct open_attributes open_t; > >struct fstat_attributes { > int fd; > struct stat *buf; >}; > >typedef struct fstat_attributes fstat_t; > >struct open_fstat { > open_t *open; > fstat_t *fstat; >}; > >typedef struct open_fstat oft; > >#define open_validate_error_goto(filename, flag, mode) do { \ > pthread_mutex_lock (&info.mutex); \ > { \ > info.num_open++; \ > } \ > pthread_mutex_unlock (&info.mutex); \ > fd = open (filename, flag, mode); \ > if (fd == -1) { \ > ret = -1; \ > goto out; \ > } else { \ > pthread_mutex_lock (&info.mutex); \ > { \ > info.num_open_success++; \ > } \ > pthread_mutex_unlock (&info.mutex); \ > } \ > } while (0); > >#ifndef UNIX_PATH_MAX >#define UNIX_PATH_MAX 4096 >#endif > >typedef struct info { > pthread_mutex_t mutex; > unsigned long long num_open; > unsigned long long num_open_success; > unsigned long long flocks; > unsigned long long flocks_success; > unsigned long long fcntl_locks; > unsigned long long fcntl_locks_success; > unsigned long long read; > unsigned long long read_success; > unsigned long long write; > unsigned long long write_success; > unsigned long long fstat; > unsigned long long fstat_success; > unsigned long long truncate; > unsigned long long truncate_success; > unsigned long long chown; > unsigned long long chown_success; > unsigned long long opendir; > unsigned long long opendir_success; > unsigned long long readdir; > unsigned long long readdir_success; >} info_t; > >typedef struct >{ > char directory[UNIX_PATH_MAX]; > unsigned long long time; >} thread_config_t; > >info_t info = {0,};
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 822067
:
584900
| 584902