Skip to content

Conversation

@imlk0
Copy link
Collaborator

@imlk0 imlk0 commented Feb 5, 2026

No description provided.

imlk0 added 2 commits February 5, 2026 21:02
Introduce `has_valuable_data()` to better determine whether a block device contains meaningful filesystem data:

- When an expected filesystem type (`fs_hint`) is provided, it strictly checks for that type and errors if something else is detected.
- Without a hint, it treats known partition tables like `PTTYPE="atari"` as non-valuable (workaround for util-linux bug), while considering any other detected signature as valuable data.
- Update callers in `cryptpilot-crypt` and tests to use the new logic, flipping boolean expectations accordingly.

This improves safety during volume initialization by avoiding accidental overwrites of unexpected but valid data.

Signed-off-by: Kun Lai <laikun@linux.alibaba.com>
Remove manual debian/changelog file and implement automatic generation from Cargo.toml

Fixes: #76
@imlk0
Copy link
Collaborator Author

imlk0 commented Feb 6, 2026

Closing in favor of PR #89 which has a more robust version extraction method

@imlk0 imlk0 closed this Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant