diff options
author | Andreas Loibl <andreas@andreas-loibl.de> | 2011-04-25 22:35:52 +0200 |
---|---|---|
committer | Andreas Loibl <andreas@andreas-loibl.de> | 2011-04-25 22:35:52 +0200 |
commit | 683065d12a92fa1b722a3fa42ca6a27e15672a0d (patch) | |
tree | d20e4e09eb5d276b34c4bd634f1d865036ccf208 | |
parent | 174633ddffb2a670f00caf1801bce1f992078eeb (diff) | |
download | acritoxinstaller-683065d12a92fa1b722a3fa42ca6a27e15672a0d.zip acritoxinstaller-683065d12a92fa1b722a3fa42ca6a27e15672a0d.tar.gz |
added listing of Linux Software RAID (md) partitions
-rw-r--r-- | backend/modules/partitions | 2 |
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 |