Skip to content

osandov/btrfs-fscrypt-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Development scripts and notes for Btrfs fscrypt

This repository contains some simple scripts that I've used for developing fscrypt for Btrfs.

Setup

  • Build the fscryptctl Btrfs fork.
  • Create a config.sh file which defines:
    • PATH to include the fscryptctl build.
    • DEV as the block device to test on (which will be reformatted).
    • MNT as the mountpoint for the filesystem to test on.

For example:

export PATH="/home/vmuser/repos/fscryptctl:$PATH"
DEV=/dev/vdb
MNT=/mnt

Scripts

  • recreate.sh: Create a Btrfs filesystem with fscrypt enabled.
  • mount.sh: Mount the previously created filesystem and unlock the encrypted directory.
  • lock.sh: Lock the encrypted directory.
  • unlock.sh: Unlock the encrypted directory.
  • smoke_test.sh: Run basic tests on Btrfs with fscrypt.
  • key.py: Output the key used by the encrypted directory.

About

Development scripts and notes for Btrfs fscrypt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published