From 48fa28f1ec43d0576867e74237b59f29d85f2b03 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Thu, 28 Feb 2013 07:15:13 +0000 Subject: [PATCH] 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. --- inxi | 6 +++--- inxi.changelog | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/inxi b/inxi index 351ed02..3b52881 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/usr/bin/env bash ######################################################################## #### Script Name: inxi -#### Version: 1.8.41 +#### Version: 1.8.42 #### Date: February 27 2013 #### Patch Number: 00 ######################################################################## @@ -4871,8 +4871,8 @@ get_hdd_data_basic() # note use next, not getline or it does not work right next } - # also handles odd dm-1 type, from lvm - /^\/dev\/(mapper\/|[hsv]d[a-z][0-9]+|dm[-]?[0-9]+|ada[0-9]+p[0-9]+)/ { + # 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]+.*|md[0-9]+|[aw]d[0-9]+s.*)/ { # this handles the case where the first item is too long # 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 diff --git a/inxi.changelog b/inxi.changelog index d3abf85..be3d213 100755 --- a/inxi.changelog +++ b/inxi.changelog @@ -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 Patch Version: 00