search for: print_drive_size

Displaying 2 results from an estimated 2 matches for "print_drive_size".

2009 Jul 10
0
[PATCH node] This is a follow-on patch for bz#507455.
...local space_var=$2 @@ -70,11 +75,36 @@ get_drive_size() fi size=$(echo "scale=0; $size / (1024 * 1024)" | bc -l) - echo "$drive ($size MB)" + eval $space_var=$size + + debug "::size=$size" + + debug "get_drive_size: exit" +} + +print_drive_size () +{ + debug "print_drive_size: start" + local drive=$1 + local udi=${2-} + + if [ -z "$udi" ]; then + for this_udi in $(hal-find-by-capability --capability storage); do + if [[ "$(hal-get-property --udi $this_udi --key block.device)" = &...
2009 Jul 01
1
Replacement patch for bz#507455
This patch includes a fix to no longer list devices with 0 bytes of storage, such as removeable media devices with no media present.