diff --git a/Cargo.lock b/Cargo.lock index bd85205f42980f7fe3113ff1cd665206f3745308..18b5dfba1ba48605ce67902725d396371de918b9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,7 +97,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "redoxfs" -version = "0.3.4" +version = "0.3.5" dependencies = [ "fuse 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.58 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 310080d3de787b221ef23a5cc11e65410c996838..e5f2535f8c3dc93a78ff826ca0a48cc5567ee4a6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "redoxfs" description = "The Redox Filesystem" repository = "https://gitlab.redox-os.org/redox-os/redoxfs" -version = "0.3.4" +version = "0.3.5" license-file = "LICENSE" readme = "README.md" authors = ["Jeremy Soller <jackpot51@gmail.com>"] diff --git a/src/archive.rs b/src/archive.rs index f5ad9b68d24a13540d33e3b41eff458ec2099a45..329d9b663b770e2dbcbf768b3ea3b1490733c263 100644 --- a/src/archive.rs +++ b/src/archive.rs @@ -10,7 +10,7 @@ fn syscall_err(err: syscall::Error) -> io::Error { io::Error::from_raw_os_error(err.errno) } -fn archive_at<D: Disk, P: AsRef<Path>>(fs: &mut FileSystem<D>, parent_path: P, parent_block: u64) -> io::Result<()> { +pub fn archive_at<D: Disk, P: AsRef<Path>>(fs: &mut FileSystem<D>, parent_path: P, parent_block: u64) -> io::Result<()> { for entry_res in fs::read_dir(parent_path)? { let entry = entry_res?; diff --git a/src/lib.rs b/src/lib.rs index b9c6cd4f78658d87b43a4cfccfdc0ced22aaa763..75fc1112c86b93c1ab7410f749e28e5235ba0ebd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -11,7 +11,7 @@ pub const SIGNATURE: &'static [u8; 8] = b"RedoxFS\0"; pub const VERSION: u64 = 3; pub static IS_UMT: AtomicUsize = AtomicUsize::new(0); -pub use self::archive::archive; +pub use self::archive::{archive, archive_at}; pub use self::disk::{Disk, DiskCache, DiskFile, DiskSparse}; pub use self::ex_node::ExNode; pub use self::extent::Extent;