"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/volume.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).

volume.rc  (glusterfs-9.1):volume.rc  (glusterfs-9.2)
skipping to change at line 428 skipping to change at line 428
brick=$3 brick=$3
realpath=$4 realpath=$4
ls -l /proc/$(get_brick_pid $vol $host $brick)/fd | grep "${realpath}$" 2>&1 > /dev/null ls -l /proc/$(get_brick_pid $vol $host $brick)/fd | grep "${realpath}$" 2>&1 > /dev/null
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo "Y" echo "Y"
else else
echo "N" echo "N"
fi fi
} }
function gf_open_file_count_in_brick {
vol=$1
host=$2
brick=$3
realpath=$4
ls -l /proc/$(get_brick_pid $vol $host $brick)/fd | grep "${realpath}$"
| wc -l
}
function gf_get_gfid_backend_file_path { function gf_get_gfid_backend_file_path {
brickpath=$1 brickpath=$1
filepath_in_brick=$2 filepath_in_brick=$2
gfid=$(gf_get_gfid_xattr "$brickpath/$filepath_in_brick") gfid=$(gf_get_gfid_xattr "$brickpath/$filepath_in_brick")
gfidstr=$(gf_gfid_xattr_to_str $gfid) gfidstr=$(gf_gfid_xattr_to_str $gfid)
echo "$brickpath/.glusterfs/${gfidstr:0:2}/${gfidstr:2:2}/$gfidstr" echo "$brickpath/.glusterfs/${gfidstr:0:2}/${gfidstr:2:2}/$gfidstr"
} }
function gf_rm_file_and_gfid_link { function gf_rm_file_and_gfid_link {
brickpath=$1 brickpath=$1
skipping to change at line 855 skipping to change at line 863
if [ "$ret" = "on" ] || [ $cnt -eq 1 ]; then if [ "$ret" = "on" ] || [ $cnt -eq 1 ]; then
echo "Y" echo "Y"
else else
echo "N" echo "N"
fi fi
else else
echo "N" echo "N"
fi fi
} }
function get_value_from_brick_statedump {
local vol="$1"
local host="$2"
local brick="$3"
local key="$4"
local statedump="$(generate_brick_statedump $vol $host $brick)"
value="$(grep "$key" $statedump | cut -f2 -d'=' | tail -1)"
rm -f "$statedump"
echo "$value"
}
function get_fd_count { function get_fd_count {
local vol=$1 local vol=$1
local host=$2 local host=$2
local brick=$3 local brick=$3
local fname=$4 local fname=$4
local val="$(check_brick_multiplex)" local val="$(check_brick_multiplex)"
local gfid_str=$(gf_gfid_xattr_to_str $(gf_get_gfid_xattr $brick/$fname) ) local gfid_str=$(gf_gfid_xattr_to_str $(gf_get_gfid_xattr $brick/$fname) )
local statedump=$(generate_brick_statedump $vol $host $brick) local statedump=$(generate_brick_statedump $vol $host $brick)
if [ $val == "N" ]; then if [ $val == "N" ]; then
count=$(grep "gfid=$gfid_str" $statedump -A2 | grep fd-count | cut - f2 -d'=' | tail -1) count=$(grep "gfid=$gfid_str" $statedump -A2 | grep fd-count | cut - f2 -d'=' | tail -1)
 End of changes. 2 change blocks. 
0 lines changed or deleted 22 lines changed or added

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