Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 704481 Details for
Bug 917272
program to just set trusted.glusterfs.volume-id, for running glusterfs standalone
[?]
New
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.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
"C" program to parse string volume ID from volfile and set it in brick directory
set-gluster-vol-id.c (text/x-csrc), 1.18 KB, created by
Ben England
on 2013-03-02 14:36:34 UTC
(
hide
)
Description:
"C" program to parse string volume ID from volfile and set it in brick directory
Filename:
MIME Type:
Creator:
Ben England
Created:
2013-03-02 14:36:34 UTC
Size:
1.18 KB
patch
obsolete
>/* set-gluster-vol-id.c -- program to set a gluster volume ID string on a gluster brick > * > * to compile: assuming you ran configure --prefix=`pwd`/top > * # cc -Wall -g -o setuuid -I glusterfs/contrib/uuid -I glusterfs -L top/lib setuuid.c -lglusterfs > * > * to run: > * # set-gluster-vol-id volume-uuid-string brick-directory-pathname > * */ > >#include <stdlib.h> >#include <stdio.h> >#include <ctype.h> >#include <string.h> >#include <unistd.h> >#include <stdlib.h> >#include <attr/xattr.h> >#include "uuidP.h" > >int main(int argc, char * argv[]) >{ > const char * volid_xattr_name = "trusted.glusterfs.volume-id"; > char * uuidstr, * path; > int ret; > uuid_t uuid_val; > if (argc < 3) { > printf("usage: setuuid volume-uuid-string brick-directory-pathname\n"); > exit(1); > } > uuidstr = argv[1]; > path = argv[2]; > > printf("volume uuid string %s , brick directory path %s \n", uuidstr, path ); > ret = uuid_parse( uuidstr, uuid_val ); > if (ret) { > printf("error %d parsing uuid\n", ret ); > exit(1); > } > ret = lsetxattr( path, volid_xattr_name, &uuid_val, sizeof(uuid_val), 0); > if (ret) { > printf("error %d setting extended attribute %s\n", ret, volid_xattr_name); > exit(1); > } > return 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 917272
: 704481