New version, small bug fix, inxi failed to add in md raid partition size data to HDD used data.

The hdd used still fails to properly calculate the actual raid sizes but that's a bit too tricky
to do easily so will leave that for some other time.

Also added in more hdd used partition types for bsds, wd and ad type drivers for disks.
This commit is contained in:
inxi-svn 2013-02-28 07:15:13 +00:00
parent 974a60f7aa
commit 48fa28f1ec
2 changed files with 20 additions and 3 deletions

6
inxi
View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
######################################################################## ########################################################################
#### Script Name: inxi #### Script Name: inxi
#### Version: 1.8.41 #### Version: 1.8.42
#### Date: February 27 2013 #### Date: February 27 2013
#### Patch Number: 00 #### Patch Number: 00
######################################################################## ########################################################################
@ -4871,8 +4871,8 @@ get_hdd_data_basic()
# note use next, not getline or it does not work right # note use next, not getline or it does not work right
next next
} }
# also handles odd dm-1 type, from lvm # also handles odd dm-1 type, from lvm, and mdraid, and some other bsd partition syntax
/^\/dev\/(mapper\/|[hsv]d[a-z][0-9]+|dm[-]?[0-9]+|ada[0-9]+p[0-9]+)/ { /^\/dev\/(mapper\/|[hsv]d[a-z][0-9]+|dm[-]?[0-9]+|ada[0-9]+p[0-9]+.*|md[0-9]+|[aw]d[0-9]+s.*)/ {
# this handles the case where the first item is too long # this handles the case where the first item is too long
# and makes df wrap output to next line, so here we advance # and makes df wrap output to next line, so here we advance
# it to the next line for that single case. Using df -P should # it to the next line for that single case. Using df -P should

View file

@ -1,3 +1,20 @@
=====================================================================================
Version: 1.8.42
Patch Version: 00
Script Date: February 27 2013
-----------------------------------
Changes:
-----------------------------------
New version, small bug fix, inxi failed to add in md raid partition size data to HDD used data.
The hdd used still fails to properly calculate the actual raid sizes but that's a bit too tricky
to do easily so will leave that for some other time.
Also added in more hdd used partition types for bsds, wd and ad type drivers for disks.
-----------------------------------
-- Harald Hope - Wed, 27 Feb 2013 23:13:00 -0800
===================================================================================== =====================================================================================
Version: 1.8.41 Version: 1.8.41
Patch Version: 00 Patch Version: 00