From 7df3311080e70b0ae2d33c9cbc7ccf8234a987cc Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Fri, 11 Jun 2010 04:04:40 +0000 Subject: [PATCH] bug fix, -o also requires a loop type fs filter to avoid showing squashfs type partitions --- inxi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inxi b/inxi index 6c57d18..8d19aec 100755 --- a/inxi +++ b/inxi @@ -3842,7 +3842,8 @@ get_unmounted_partition_data() } # note that size 1 means it is a logical extended partition container # lvm might have dm-1 type syntax - /[a-z][0-9]+$|dm-[0-9]+$/ && $3 != 1 { + # need to exclude loop type file systems, squashfs for example + /[a-z][0-9]+$|dm-[0-9]+$/ && $3 != 1 && $NF !~ /loop/ { size = sprintf( "%.2f", $3*1024/1000**3 ) print $4 "," size "G" }' ) )