diff --git a/ecstore/src/disk.rs b/ecstore/src/disk.rs index f043b70ea..7527f91e0 100644 --- a/ecstore/src/disk.rs +++ b/ecstore/src/disk.rs @@ -375,6 +375,8 @@ pub enum DiskError { impl DiskError { pub fn check_disk_fatal_errs(errs: &Vec>) -> Result<(), Error> { + println!("errs: {:?}", errs); + if Self::count_errs(errs, &DiskError::UnsupportedDisk) == errs.len() { return Err(Error::new(DiskError::UnsupportedDisk)); } @@ -412,7 +414,7 @@ impl DiskError { return cast == err; } } - true + false }) .count(); } diff --git a/ecstore/src/endpoint.rs b/ecstore/src/endpoint.rs index 7a88e88c1..e8332dad1 100644 --- a/ecstore/src/endpoint.rs +++ b/ecstore/src/endpoint.rs @@ -624,10 +624,7 @@ mod test { fn test_create_server_endpoints() { let cases = vec![( ":9000", - vec![ - // "/Users/weisd/fs".to_string(), - "http://localhost:900{1...2}/export{1...64}".to_string(), - ], + vec!["http://localhost:900{1...2}/export{1...64}".to_string()], )]; for (addr, args) in cases { diff --git a/scripts/run.sh b/scripts/run.sh index 51815961b..d27936ab8 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -1,5 +1,8 @@ #!/bin/bash -DATA_DIR="/tmp" + +mkdir -p ./target/volume/test{0..4} + +DATA_DIR="./target/volume/test{0...4}" if [ -n "$1" ]; then DATA_DIR="$1"