Displaying 6 results from an estimated 6 matches for "media_available".
2009 Jun 25
1
[PATCH node] Fixes when a removable media is removed. bz#507455
...AL 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 storage.removable.media_size)
+ fi
fi
fi
--
1.6.0.6
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.
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.
...}" == "0" ]]; then
- # disk is probably hot-swappable, use different HAL key
- # 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 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 * 1...
2008 Jul 28
5
Hardware serial number access from (a) command(s)
Over the weekend, I had to make a technical support call on one of my
DVD burners, and at one point the recorded message mentioned I should
have my serial number handy. I thought there was a way to read that
from at least one piece of software on the system, but I couldn't
remember one and man -k on a number of subjects was unrevealing.
Can someone enlighten me (us)?
Thanks.
mhr
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.