Skip to content

Commit

Permalink
initial flush path lister implementation (#241)
Browse files Browse the repository at this point in the history
changes by @calccrypto
Given a DAL root, scan the files in the leaf directories and print the
paths of files that should be flushed based on system utilization and
user provided thresholds.

Usage: flush_ls <ROOT> <REFTIME> <THRESHOLDS>...
  • Loading branch information
calccrypto authored Nov 5, 2024
1 parent 7311689 commit 239d633
Show file tree
Hide file tree
Showing 5 changed files with 1,072 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ jobs:
mkdir install
- name: Checkout ISA-L
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: intel/isa-l
ref: v2.30.0
path: isa-l

- name: Checkout MarFS
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: marfs

Expand All @@ -49,3 +49,19 @@ jobs:
make install
cd $GITHUB_WORKSPACE
# https://doc.rust-lang.org/cargo/guide/continuous-integration.html
flush_ls:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Update Toolchain
run: rustup update stable && rustup default stable

- name: Build
run: cargo build --verbose
working-directory: flush_ls

- name: Test
run: cargo test --verbose
working-directory: flush_ls
321 changes: 321 additions & 0 deletions flush_ls/Cargo.lock

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

12 changes: 12 additions & 0 deletions flush_ls/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[package]
name = "flush_ls"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
clap = { version = "4.5.20", features = ["derive"] }
errno = "0.3.9"
libc = "0.2.161"
tempfile = "3.13.0"
Loading

0 comments on commit 239d633

Please sign in to comment.