Skip to content

Commit

Permalink
Remove maximum thindev size limit
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaublitz committed Oct 19, 2023
1 parent 6db9394 commit 1bbdd77
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/engine/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 1bbdd77

Please sign in to comment.