Skip to content

Commit

Permalink
xetldfs integration tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
seanses committed Aug 29, 2024
1 parent 09b3328 commit 94d37c2
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 38 deletions.
26 changes: 9 additions & 17 deletions libxet/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions rust/gitxetcore/src/data/configurations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use common_constants::LOCAL_CAS_SCHEME;
use super::errors::DataProcessingError;
use super::errors::Result;
use crate::config::XetConfig;
use crate::constants::SMALL_FILE_THRESHOLD;
use crate::git_integration::git_repo_salt::RepoSalt;
use std::path::PathBuf;
use std::str::FromStr;
Expand Down Expand Up @@ -206,7 +205,7 @@ pub async fn shard_storage_config_from(xet: &XetConfig) -> Result<StorageConfig>
pub fn dedup_config_from(xet: &XetConfig) -> DedupConfig {
DedupConfig {
repo_salt: Some(Default::default()),
small_file_threshold: SMALL_FILE_THRESHOLD,
small_file_threshold: xet.cas.size_threshold,
global_dedup_policy: xet.global_dedup_query_policy,
}
}
Expand Down
26 changes: 9 additions & 17 deletions xetldfs/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion xetldfs/src/xet_repo_wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ use file_utils::SafeFileCreator;
use std::path::{Path, PathBuf};
use std::sync::{Arc, RwLock};

use libxet::data::{PointerFile, PointerFileTranslatorV2};
use libxet::data::data_processing_v3::PointerFileTranslatorV3 as PointerFileTranslatorV2;
use libxet::data::PointerFile;
use libxet::errors::Result;
use libxet::git_integration::GitXetRepo;

Expand Down
3 changes: 2 additions & 1 deletion xetldfs/src/xet_rfile.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use errno::{set_errno, Errno};
use libc::*;
use libxet::data::{PointerFile, PointerFileTranslatorV2};
use libxet::data::data_processing_v3::PointerFileTranslatorV3 as PointerFileTranslatorV2;
use libxet::data::PointerFile;
use libxet::ErrorPrinter;
use std::io::Cursor;
use std::path::{Path, PathBuf};
Expand Down

0 comments on commit 94d37c2

Please sign in to comment.