Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Release

on:
push:
tags:
- 'v*'

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Rust 1.80
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.80.1
targets: x86_64-unknown-linux-musl

- name: Install musl-tools
run: sudo apt-get update && sudo apt-get install -y musl-tools

- name: Cache cargo build
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-musl-${{ hashFiles('**/Cargo.lock') }}

- name: Build release (static musl)
run: cargo build --release --target x86_64-unknown-linux-musl

- name: Strip binary
run: strip target/x86_64-unknown-linux-musl/release/pbkfs

- name: Get version from tag
id: version
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT

- name: Prepare release artifact
run: |
mkdir -p release
cp target/x86_64-unknown-linux-musl/release/pbkfs release/pbkfs-${{ steps.version.outputs.VERSION }}-linux-x86_64
cd release && sha256sum pbkfs-* > checksums.txt

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: |
release/pbkfs-${{ steps.version.outputs.VERSION }}-linux-x86_64
release/checksums.txt
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69 changes: 69 additions & 0 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ flate2 = "1.0"
lz4_flex = { version = "0.10", features = ["std"] }
zstd = "0.13"
crossbeam-channel = "0.5"
dashmap = "6.1"
parking_lot = "0.12"

[dev-dependencies]
tempfile = "3.10"
Expand Down
4 changes: 3 additions & 1 deletion src/cli/mount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::{

use clap::Args;
use serde_json;
use tracing::{info, instrument, warn};
use tracing::{debug, info, instrument, warn};

use crate::{
backup::{
Expand Down Expand Up @@ -272,6 +272,8 @@ pub fn mount(args: MountArgs) -> Result<MountContext> {
}

let overlay = Overlay::new_with_layers(&store.path, &diff_dir.path, layers)?;
let layer_roots = overlay.layer_roots();
debug!(?layer_roots, "overlay_layers_order");

// Persist lock markers before mounting so writes hit the real FS, not the FUSE layer.
let mut session = MountSession::new(binding.binding_id, &mnt_path);
Expand Down
Loading