summaryrefslogtreecommitdiff
path: root/src/core/libs/lib-blockdevices-filesystems.sh
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2008-12-06 13:50:01 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2008-12-06 13:50:01 +0100
commit26fc8b46047f01ce0cc350d40b56de488ecb5ec3 (patch)
treeda2c8f70952d6c4475081a6932197b4c1597b329 /src/core/libs/lib-blockdevices-filesystems.sh
parentc3f3d5e22832fe98dafb6a853b79706a4f642bb7 (diff)
several small fixes
Diffstat (limited to 'src/core/libs/lib-blockdevices-filesystems.sh')
-rw-r--r--src/core/libs/lib-blockdevices-filesystems.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/libs/lib-blockdevices-filesystems.sh b/src/core/libs/lib-blockdevices-filesystems.sh
index b271900..d285580 100644
--- a/src/core/libs/lib-blockdevices-filesystems.sh
+++ b/src/core/libs/lib-blockdevices-filesystems.sh
@@ -518,7 +518,7 @@ get_filesystem_program ()
get_blockdevice_size ()
{
[ -b "$1" ] || die_error "get_blockdevice_size needs a blockdevice as \$1 ($1 given)"
- blocks=`fdisk -s $1`
+ blocks=`fdisk -s $1` || show_warning "Fdisk problem" "Something failed when trying to do fdisk -s $1"
#NOTE: on some interwebs they say 1 block = 512B, on other internets they say 1 block = 1kiB. 1kiB seems to work for me. don't sue me if it doesn't for you
BLOCKDEVICE_SIZE=$(($blocks/1024))
}