Displaying 2 results from an estimated 2 matches for "check_if_device_is_good".
2009 Jul 10
0
[PATCH node] This is a follow-on patch for bz#507455.
...eat it as selected (see below).
-# and return 0. If there are two or more, make the user select one
-# or decline. Upon decline, return nonzero. Otherwise, print the
-# selected name, then return 0.
-# Sample output: /dev/sda
-get_dev_name()
+# Ensures the device is acceptable
+# $1 - the device
+check_if_device_is_good ()
+{
+ debug "check_if_device_is_good: start"
+ local device=$1
+ local result=1
+
+ # Must start with a '/'.
+ case $device in
+ *' '*)
+ # we use space as separator
+ warn "block device name '$device' contains spa...
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.