From 36f82f81bc94bfa7b0412c3df8d2b13d932a2910 Mon Sep 17 00:00:00 2001 From: Thomas Thrainer Date: Thu, 23 May 2013 13:17:29 +0200 Subject: [PATCH] Report error when exporting non-ext partition Report an error if it's exporting an instance fails because of the wrong filesystem type. This fixes issue 303. Signed-off-by: Thomas Thrainer Reviewed-by: Guido Trotter --- NEWS | 4 ++++ export | 3 +++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/NEWS b/NEWS index 7c48341..493cd60 100644 --- a/NEWS +++ b/NEWS @@ -9,6 +9,10 @@ defaults to 'ext4'. Improve documentation with regard to instance variants. +Bugfixes: + +- Report an error if it's exporting an instance fails because of the + wrong filesystem type. Version 0.12 ------------ diff --git a/export b/export index d0afa68..46aa74c 100755 --- a/export +++ b/export @@ -43,6 +43,9 @@ vol_type=$($VOL_TYPE $filesystem_dev) if [ "${vol_type:0:3}" = "ext" ]; then dump -0 -q -f - "$filesystem_dev" +else + echo "Can't dump partition of type ${vol_type}!" >&2 + exit 1 fi # execute cleanups -- 1.7.2.5