diff options
Diffstat (limited to 'backend/modules/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 |