-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ArcHashmap to store values that are auto removed when no ref to them
add homepage url add locks on dir entry operations allow publicly only change operations on inode meta with specified fields to update, it will merge time info to take the most recent ones add back change password when fs is created
- Loading branch information
1 parent
3252448
commit d5658e8
Showing
5 changed files
with
182 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ version = "0.2.0" | |
edition = "2021" | ||
license = "Apache-2.0" | ||
authors = ["Radu Marias <[email protected]>"] | ||
homepage = "https://github.com/radumarias/rencfs" | ||
repository = "https://github.com/radumarias/rencfs" | ||
readme = "README.md" | ||
keywords = ["filesystem", "fuse", "encryption", "system", "security"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use rencfs::arc_hashmap::ArcHashMap; | ||
|
||
fn main() { | ||
let mut m = ArcHashMap::new(); | ||
{ | ||
let v = m.insert(1, 2); | ||
println!("size {}", m.len()); | ||
m.insert(2, 3); | ||
println!("size {}", m.len()); | ||
let v = m.get_or_insert_with(3, || 4); | ||
println!("size {}", m.len()); | ||
} | ||
println!("size {}", m.len()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.