Skip to content

Commit

Permalink
OS-1125 fix detection of zpool.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwilsdon committed Apr 25, 2012
1 parent e79863e commit 70a6ae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sysinfo
Expand Up @@ -233,7 +233,7 @@ function get_zpool_profile()
function get_zpool()
{
if [[ $(zpool list) != "no pools available" ]]; then
Zpool=$(zpool list -H | awk '{print $1}');
Zpool=$(svcprop -p "config/zpool" svc:/system/smartdc/init);

local used=$(zfs get -Hp -o value used ${Zpool})
local available=$(zfs get -Hp -o value available ${Zpool})
Expand Down

0 comments on commit 70a6ae8

Please sign in to comment.