src/tools/disks/zfs.rs: add comment

This commit is contained in:
Dietmar Maurer 2020-06-17 07:14:26 +02:00
parent 66af7f51bc
commit 46405fa35d
1 changed files with 3 additions and 0 deletions

View File

@ -209,6 +209,9 @@ pub fn zpool_list(pool: Option<String>, verbose: bool) -> Result<Vec<ZFSPoolStat
let mut command = std::process::Command::new("zpool"); let mut command = std::process::Command::new("zpool");
command.args(&["list", "-H", "-p", "-P"]); command.args(&["list", "-H", "-p", "-P"]);
// Note: We do not use -o to define output properties, because zpool command ignores
// that completely for special vdevs and devices
if verbose { command.arg("-v"); } if verbose { command.arg("-v"); }
if let Some(pool) = pool { command.arg(pool); } if let Some(pool) = pool { command.arg(pool); }