From 4329436beb04fec0fa30909e0c06f799dc76c56a Mon Sep 17 00:00:00 2001 From: Jaime Melis Date: Thu, 26 Sep 2013 11:15:30 +0200 Subject: [PATCH] feature #2164: Remove bzip2 support for stat --- src/datastore_mad/remotes/libfs.sh | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/datastore_mad/remotes/libfs.sh b/src/datastore_mad/remotes/libfs.sh index f187793a7c..e890d94996 100644 --- a/src/datastore_mad/remotes/libfs.sh +++ b/src/datastore_mad/remotes/libfs.sh @@ -146,16 +146,6 @@ function gzip_file_size { gzip -l "$1" | tail -n 1 | awk '{print $2}' } -#------------------------------------------------------------------------------ -# Gets the size in bytes of a bzip2 file -# @param $1 - Path to the image -# @return size of the image in bytes -#------------------------------------------------------------------------------ - -function bzip2_file_size { - bzip2 -dc "$1" | wc -c -} - #------------------------------------------------------------------------------- # Computes the size of an image # @param $1 - Path to the image @@ -193,9 +183,6 @@ function fs_size { "application/x-gzip") SIZE=$(gzip_file_size "$1") ;; - "application/x-bzip2") - SIZE=$(bzip2_file_size "$1") - ;; *) SIZE=$(file_size "$1") ;;