Displaying 7 results from an estimated 7 matches for "media_size".
2009 Jun 25
1
[PATCH node] Fixes when a removable media is removed. bz#507455
...ve_size()
size=$(hal-get-property --udi "$udi" --key storage.size)
if [[ "${size}" == "0" ]]; then
# disk is probably hot-swappable, use different HAL key
- size=$(hal-get-property --udi "$udi" --key storage.removable.media_size)
+ # but first check that it is removeable media and that media is present
+ if [[ "true" == "$(hal-get-property --udi "$udi" --key storage.removable.media_available)" ]]; then
+ size=$(hal-get-property --udi "$udi" --key...
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.
2009 May 26
0
[PATCH node] Fixes when more than one UDI is returned while getting a drive's size.
...property --udi "$udi" --key storage.size)
- if [ $size -eq 0 ]; then
+ if [[ "${size}" == "0" ]]; then
# disk is probably hot-swappable, use different HAL key
size=$(hal-get-property --udi "$udi" --key storage.removable.media_size)
fi
--
1.6.0.6
2009 May 27
4
[PATCH node] REPOST Joey's and Darryl's ovirt-config-* patches
This is a repost of patches for ovirt-config-*
ACK to all. Pushed.
2010 May 13
1
Non-functional replacement...
This patch just includes the repo name in the subject.
2010 May 13
0
[PATCH] Replace the HAL calls with udev/systool calls.
...t first check that it is removeable media and that media is present
- if [[ "true" == "$(hal-get-property --udi "$udi" --key storage.removable.media_available)" ]]; then
- size=$(hal-get-property --udi "$udi" --key storage.removable.media_size)
- fi
- fi
- fi
+ local size=$(sfdisk -s $drive)
+ size=$(echo "scale=0; $size / 1024" | bc -l)
- size=$(echo "scale=0; $size / (1024 * 1024)" | bc -l)
echo "$drive ($size MB)"
- test -z "$udi" || echo "Disk Identi...
2010 May 14
3
Replacement patch...
This one incorporates feedback from mburns and apevec to ensure
that all multipath devices are excluded in the list of available
drives.
Only drives with an identified bus are included in the list now.