summaryrefslogtreecommitdiff
path: root/backend/modules/partitions
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-04-25 22:35:52 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2011-04-25 22:35:52 +0200
commit683065d12a92fa1b722a3fa42ca6a27e15672a0d (patch)
treed20e4e09eb5d276b34c4bd634f1d865036ccf208 /backend/modules/partitions
parent174633ddffb2a670f00caf1801bce1f992078eeb (diff)
downloadacritoxinstaller-683065d12a92fa1b722a3fa42ca6a27e15672a0d.zip
acritoxinstaller-683065d12a92fa1b722a3fa42ca6a27e15672a0d.tar.gz
added listing of Linux Software RAID (md) partitions
Diffstat (limited to 'backend/modules/partitions')
-rw-r--r--backend/modules/partitions2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/modules/partitions b/backend/modules/partitions
index c869053..b6e1c60 100644
--- a/backend/modules/partitions
+++ b/backend/modules/partitions
@@ -31,9 +31,11 @@ function send_list_of_disks()
# /dev/sda1
# /dev/sda2
# /dev/sdb5
+# /dev/md0
function list_all_partitions()
{
awk -vli="$(awk '{if($2=="sd") print $1;}' /proc/devices)" 'BEGIN{m=split(li,list," ")}{for(i=1;i<=m;i++) if($1==list[i]&&$2%16!=0) print "/dev/"$4;}' /proc/partitions
+ awk -vli="$(awk '{if($2=="md") print $1;}' /proc/devices)" 'BEGIN{m=split(li,list," ")}{for(i=1;i<=m;i++) if($1==list[i]) print "/dev/"$4;}' /proc/partitions
}
# Synopsis: list_dm_partitions