diff options
Diffstat (limited to 'extras')
| -rw-r--r-- | extras/glusterfs-defrag.in | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/extras/glusterfs-defrag.in b/extras/glusterfs-defrag.in index 8bdaf3d8..68a393f1 100644 --- a/extras/glusterfs-defrag.in +++ b/extras/glusterfs-defrag.in @@ -12,7 +12,10 @@  set -e; -added_bricks="node1:/gfs/export1" +# +#added_bricks="node1:/gfs/export1" +# +added_bricks=""  CP="cp"  MV="mv" @@ -53,6 +56,8 @@ relocate_file()          return;      fi +    size=$(stat -c '%s' "$path"); +      # If there are some entries in added_bricks, then check      # if the link file is present on those nodes, if not,      # set flag=1, so full defrag happens  | 
