summaryrefslogtreecommitdiff
path: root/sliceweasel.lib.sh
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2022-03-27 19:56:50 -0400
committerAndrew Cady <d@cryptonomic.net>2022-03-27 19:56:50 -0400
commit88e95dad71447b03ac95514da0fd281389dc9d7b (patch)
tree141c1ec445a13f989bcac57bcca4ca1e98b9cc1b /sliceweasel.lib.sh
parentbe326e580cb7a34634242e7408a99607231d9aa7 (diff)
working
Diffstat (limited to 'sliceweasel.lib.sh')
-rwxr-xr-xsliceweasel.lib.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/sliceweasel.lib.sh b/sliceweasel.lib.sh
index 3c54841..890fb79 100755
--- a/sliceweasel.lib.sh
+++ b/sliceweasel.lib.sh
@@ -107,10 +107,12 @@ set_max_ratio()
107 case "$controller" in 107 case "$controller" in
108 io) 108 io)
109 fsroot=$(get_filesystem "$IO_ROOT_DIR") || return 109 fsroot=$(get_filesystem "$IO_ROOT_DIR") || return
110 # TODO: Do not use lsblk, because it fails to report the correct
111 # MOUNTPOINT when a bind mount is present.
110 majmin=$(lsblk -o 'MOUNTPOINT,MAJ:MIN' | sed -ne "s?^$fsroot *??p") || return 112 majmin=$(lsblk -o 'MOUNTPOINT,MAJ:MIN' | sed -ne "s?^$fsroot *??p") || return
111 case "$majmin" in 113 case "$majmin" in
112 *:*) ;; 114 *:*) ;;
113 *) return 1 ;; 115 *) echo "Error: majmin=$majmin" >&2; return 1 ;;
114 esac 116 esac
115 set_max "$group" "$controller" "$majmin wbps=$limit rbps=$limit" 117 set_max "$group" "$controller" "$majmin wbps=$limit rbps=$limit"
116 ;; 118 ;;