"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/afr.rc" between
glusterfs-9.1.tar.gz and glusterfs-9.2.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 9.x (latest version).

afr.rc  (glusterfs-9.1):afr.rc  (glusterfs-9.2)
#!/bin/bash #!/bin/bash
function create_brick_xattrop_entry { function create_brick_xattrop_entry {
local xattrop_dir=$(afr_get_index_path $1) local xattrop_dir=$(afr_get_index_path $1)
local base_entry=`ls $xattrop_dir|grep xattrop` local base_entry=`ls $xattrop_dir|grep xattrop`
local gfid_str local gfid_str
local params=`echo "$@" | cut -d' ' -f2-` local params=`echo "$@" | cut -d' ' -f2-`
echo $params echo $params
exit_val=0
for file in $params for file in $params
do do
gfid_str=$(gf_gfid_xattr_to_str $(gf_get_gfid_xattr $1/$file)) gfid_str=$(gf_gfid_xattr_to_str $(gf_get_gfid_xattr $1/$file))
ln $xattrop_dir/$base_entry $xattrop_dir/$gfid_str if [ -z "$base_entry"];
then
touch $xattrop_dir/$gfid_str
else
ln $xattrop_dir/$base_entry $xattrop_dir/$gfid_str
fi
if [ $? -ne 0 ];
then
exit_val=1
fi
done done
if [ $exit_val -eq 1 ];
then
false
fi
} }
function diff_dirs { function diff_dirs {
diff <(ls $1 | sort) <(ls $2 | sort) diff <(ls $1 | sort) <(ls $2 | sort)
} }
function heal_status { function heal_status {
local f1_path="${1}/${3}" local f1_path="${1}/${3}"
local f2_path="${2}/${3}" local f2_path="${2}/${3}"
local zero_xattr="000000000000000000000000" local zero_xattr="000000000000000000000000"
 End of changes. 3 change blocks. 
1 lines changed or deleted 17 lines changed or added

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