From 1bbdd77b43d06c4a4311c7f865b3c8cfde91abae Mon Sep 17 00:00:00 2001 From: John Baublitz Date: Tue, 17 Oct 2023 11:20:11 -0400 Subject: [PATCH] Remove maximum thindev size limit --- src/engine/shared.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/engine/shared.rs b/src/engine/shared.rs index 33a0475b0f3..10be45abfaa 100644 --- a/src/engine/shared.rs +++ b/src/engine/shared.rs @@ -32,9 +32,6 @@ const DEFAULT_THIN_DEV_SIZE: Sectors = Sectors(2 * IEC::Gi); // 1 TiB #[cfg(test)] pub const DEFAULT_THIN_DEV_SIZE: Sectors = Sectors(2 * IEC::Gi); // 1 TiB -// Maximum taken from "XFS Algorithms and Data Structured: 3rd edition" -const MAX_THIN_DEV_SIZE: Sectors = Sectors(16 * IEC::Pi); // 8 EiB - // xfs is planning to reject making "small" filesystems: // https://www.spinics.net/lists/linux-xfs/msg59453.html const MIN_THIN_DEV_SIZE: Sectors = Sectors(IEC::Mi); // 512 MiB @@ -220,10 +217,6 @@ pub fn validate_filesystem_size( Err(StratisError::Msg(format!( "Requested size or size_limit of filesystem {name} is {size_sectors} which is less than minimum required: {MIN_THIN_DEV_SIZE}" ))) - } else if size_sectors > MAX_THIN_DEV_SIZE { - Err(StratisError::Msg(format!( - "Requested size or size limit filesystem {name} is {size_sectors} which is greater than maximum allowed: {MAX_THIN_DEV_SIZE}" - ))) } else { Ok(size_sectors) }