Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
b329036a
Commit
b329036a
authored
May 18, 2018
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gfs: improved
parent
103db632
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
grf
gluster/grf
+2
-2
No files found.
gluster/grf
View file @
b329036a
...
...
@@ -15,7 +15,7 @@ fatal()
get_bricks
()
{
gluster volume info
$GVOLUME
|
grep
Brick
"[0-9]"
|
sed
-e
"s|Brick[0-9]: ||g"
gluster volume info
$GVOLUME
|
grep
Brick
"[0-9]"
|
sed
-e
"s|Brick[0-9]: ||g"
|
sed
-e
"s|.(.*||g"
|
grep
-v
"arbiter"
}
set_host_path
()
...
...
@@ -229,7 +229,7 @@ get_gfid()
[
-n
"
$host
"
]
||
return
#trusted.gfid=0x9dd12f564daa42ff94e103a4b0fb0899
# /var/local/eterglust/pub/.glusterfs/9d/d1/9dd12f56-4daa-42ff-94e1-03a4b0fb0899
gfid
=
$(
sshopbrick
"getfattr -h -d -m . -e hex"
"
$file
"
|
grep
^trusted.gfid |
sed
-e
"s|trusted.gfid=0x||g"
)
gfid
=
$(
sshopbrick
"getfattr -h -d -m . -e hex"
"
$file
"
|
grep
^trusted.gfid
=
0x
|
sed
-e
"s|trusted.gfid=0x||g"
)
# if file exists, really
if
[
-n
"
$gfid
"
]
;
then
python
-c
"import uuid; x=uuid.UUID(hex='
$gfid
'); print x;"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment