mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 22:13:19 -07:00
usr/lib/byobu/disk_io: canonicalize symlinks so that disk_io works
with raid, lvm, dm volumes, LP: #709224
This commit is contained in:
parent
232392d3ad
commit
59ecfbffe8
2 changed files with 3 additions and 1 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -1,6 +1,8 @@
|
||||||
byobu (3.29) unreleased; urgency=low
|
byobu (3.29) unreleased; urgency=low
|
||||||
|
|
||||||
* usr/share/man/man1/byobu.1: document PS1 workaround, LP: #525552
|
* 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
|
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 23 Feb 2011 16:24:38 -0600
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ case $MP in
|
||||||
/dev/*) disk="$MP" ;;
|
/dev/*) disk="$MP" ;;
|
||||||
*) disk=$(grep -m 1 " $MP " /etc/mtab | sed -e "s: .*$::") ;;
|
*) disk=$(grep -m 1 " $MP " /etc/mtab | sed -e "s: .*$::") ;;
|
||||||
esac
|
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 [ "$1" = "--detail" ]; then
|
||||||
if which iostat >/dev/null; then
|
if which iostat >/dev/null; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue