summaryrefslogtreecommitdiff
path: root/src/core/libs/lib-blockdevices-filesystems.sh
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2009-07-26 22:24:29 +0200
committerDieter Plaetinck <dieter@plaetinck.be>2009-07-26 22:24:29 +0200
commite4b33a47319511235db1092e4d6e5ddf6d50177f (patch)
tree68e8b408d06f33bf7b0e2caa3c94e70016a503e7 /src/core/libs/lib-blockdevices-filesystems.sh
parent8c3dcfcf7eb06a9768d2c9eb13adf7031b506272 (diff)
use debugging on get_anchestors_mount
Diffstat (limited to 'src/core/libs/lib-blockdevices-filesystems.sh')
-rw-r--r--src/core/libs/lib-blockdevices-filesystems.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/libs/lib-blockdevices-filesystems.sh b/src/core/libs/lib-blockdevices-filesystems.sh
index 88c4675..fa31095 100644
--- a/src/core/libs/lib-blockdevices-filesystems.sh
+++ b/src/core/libs/lib-blockdevices-filesystems.sh
@@ -95,6 +95,7 @@ get_device_with_mount () {
# /dev/sda2 raw
# $1 a "recognizer": a string that will match the filesystem section uniquely (using egrep), such as ';<mountpoint>;' or other specific attributes of the hosted filesystem(s)
get_anchestors_mount () {
+ debug 'FS' "Finding anchestor for: $1"
local buffer=
read block type leftovers <<< `egrep "$1" $TMP_BLOCKDEVICES 2>/dev/null`
[ -z "$type" ] && return 1
@@ -119,6 +120,7 @@ get_anchestors_mount () {
get_anchestors_mount "$recognizer" && buffer="$buffer
$ANSWER_DEVICES"
fi
+ debug 'FS' "Found anchestors: $ANSWER_DEVICES"
ANSWER_DEVICES=$buffer
[ -n "$ANSWER_DEVICES" ]
}