usr/lib/byobu/disk_io: canonicalize symlinks so that disk_io works

with raid, lvm, dm volumes, LP: #709224
This commit is contained in:
Dustin Kirkland 2011-02-27 09:15:37 -06:00
commit 59ecfbffe8
2 changed files with 3 additions and 1 deletions

2
debian/changelog vendored
View file

@ -1,6 +1,8 @@
byobu (3.29) unreleased; urgency=low
* usr/share/man/man1/byobu.1: document PS1 workaround, LP: #525552
* usr/lib/byobu/disk_io: canonicalize symlinks so that disk_io works
with raid, lvm, dm volumes, LP: #709224
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 23 Feb 2011 16:24:38 -0600

View file

@ -29,7 +29,7 @@ case $MP in
/dev/*) disk="$MP" ;;
*) disk=$(grep -m 1 " $MP " /etc/mtab | sed -e "s: .*$::") ;;
esac
disk=$(echo "$disk" | sed -e "s: .*$::" -e "s:^.*/::" -e "s:\([hsv]d[a-z]\)[0-9]*$:\1:")
disk=$(readlink "$disk" | sed -e "s: .*$::" -e "s:^.*/::" -e "s:\([hsv]d[a-z]\)[0-9]*$:\1:")
if [ "$1" = "--detail" ]; then
if which iostat >/dev/null; then