Displaying 2 results from an estimated 2 matches for "get_drive_list".
2009 Jul 10
0
[PATCH node] This is a follow-on patch for bz#507455.
...f [ $SIZE -gt 0 ]; then result=0; fi
+ ;;
+ *) warn "block device name $device doesn't start with '/';" \
+ " skipping"; continue;;
+ esac
+
+ debug "check_if_device_is_good: end (result=$result)"
+ return $result
+}
+
+get_drive_list ()
{
+ debug "get_drive_list: start"
+ local list_var=$1
+
local udi_list=$(hal-find-by-capability --capability storage)
+ debug "list_var=$list_var"
+
if test -z "$udi_list"; then
warn "ERROR: no usable storage devices detected"...
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.