mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 08:18:18 +00:00
init:store
This commit is contained in:
+3
-1
@@ -375,6 +375,8 @@ pub enum DiskError {
|
||||
|
||||
impl DiskError {
|
||||
pub fn check_disk_fatal_errs(errs: &Vec<Option<Error>>) -> 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();
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
+4
-1
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user