Changes between Version 5 and Version 6 of SaliUsage/Functions/find_all_disks
- Timestamp:
- 06/09/10 22:29:14 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SaliUsage/Functions/find_all_disks
v5 v6 4 4 = find_all_disks = 5 5 6 This function returns all the disks that could be found. Finding the disks is done by examining the links in /dev/disk/by-id|by-path|label. The return format is the diskname: 7 * hda sda sdb 8 6 This function returns all the disks that could be found. Finding the disks is done by examining the links in /dev/disk/by-id|by-path|label 9 7 {{{ 10 8 #!/bin/sh 11 9 12 10 ALLDISK=$(find_all_disks) 11 for disk in $ALLDISK 12 do 13 echo $disk 14 done 15 13 16 }}}