aboutsummaryrefslogtreecommitdiffstats
path: root/zone_zfs/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'zone_zfs/src/config.rs')
-rw-r--r--zone_zfs/src/config.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/zone_zfs/src/config.rs b/zone_zfs/src/config.rs
index abe07ac..4c0a8b5 100644
--- a/zone_zfs/src/config.rs
+++ b/zone_zfs/src/config.rs
@@ -1,4 +1,4 @@
-use bytesize::ByteSize;
+use byte_unit::Byte;
use figment::{
error::Result,
providers::{Env, Format, Serialized, Toml},
@@ -8,9 +8,9 @@ use figment::{
use serde::{Deserialize, Serialize};
use std::path::PathBuf;
-#[derive(Debug, Clone, Deserialize, Serialize)]
+#[derive(Debug, PartialEq, Clone, Deserialize, Serialize)]
pub struct Config {
- pub quota: ByteSize,
+ pub quota: Byte,
pub pool_name: String,
pub mountpoint: PathBuf,
}
@@ -18,7 +18,7 @@ pub struct Config {
impl Default for Config {
fn default() -> Self {
Config {
- quota: ByteSize::gb(16),
+ quota: 16_000_000_000u64.into(),
pool_name: String::from("pool"),
mountpoint: PathBuf::from("/srv"),
}