diff --git a/crates/ecstore/src/set_disk.rs b/crates/ecstore/src/set_disk.rs
index 771c165ee..40c88b3e5 100644
--- a/crates/ecstore/src/set_disk.rs
+++ b/crates/ecstore/src/set_disk.rs
@@ -120,6 +120,15 @@ pub const MAX_PARTS_COUNT: usize = 10000;
const DISK_ONLINE_TIMEOUT: Duration = Duration::from_secs(1);
const DISK_HEALTH_CACHE_TTL: Duration = Duration::from_millis(750);
+mod heal;
+mod list;
+mod lock;
+mod metadata;
+mod multipart;
+mod read;
+mod replication;
+mod write;
+
/// Get lock acquire timeout from environment variable RUSTFS_LOCK_ACQUIRE_TIMEOUT (in seconds)
/// Defaults to 30 seconds if not set or invalid
pub fn get_lock_acquire_timeout() -> Duration {
@@ -233,708 +242,6 @@ impl SetDisks {
// (filtered, online_count)
// }
- fn format_lock_error(&self, bucket: &str, object: &str, mode: &str, err: &LockResult) -> String {
- match err {
- LockResult::Timeout => {
- format!("{mode} lock acquisition timed out on {bucket}/{object} (owner={})", self.locker_owner)
- }
- LockResult::Conflict {
- current_owner,
- current_mode,
- } => format!("{mode} lock conflicted on {bucket}/{object}: held by {current_owner} as {current_mode:?}"),
- LockResult::Acquired => format!("unexpected lock state while acquiring {mode} lock on {bucket}/{object}"),
- }
- }
-
- fn format_lock_error_from_error(
- &self,
- bucket: &str,
- object: &str,
- mode: &str,
- err: &rustfs_lock::error::LockError,
- ) -> String {
- match err {
- rustfs_lock::error::LockError::Timeout { .. } => {
- format!(
- "ns_loc: {mode} lock acquisition timed out on {bucket}/{object} (owner={})",
- self.locker_owner
- )
- }
- rustfs_lock::error::LockError::AlreadyLocked { owner, .. } => {
- format!("ns_loc: {mode} lock conflicted on {bucket}/{object}: held by {owner}")
- }
- _ => format!("ns_loc: {mode} lock acquisition failed on {bucket}/{object}: {}", err),
- }
- }
- async fn get_disks_internal(&self) -> Vec