Skip to content

Commit

Permalink
feat: add tests for OCFS2
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoaldamav committed Oct 31, 2023
1 parent 730660f commit 7eab718
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
fs: ['btrfs', 'xfs']
fs: ['btrfs', 'xfs', 'ocfs2']
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
23 changes: 23 additions & 0 deletions scripts/linux-ocfs2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

# Install required package for OCFS2
echo "::group::Install OCFS2 Tools"
sudo apt-get update
sudo apt-get install -y ocfs2-tools
echo "::endgroup::"

# Prepare Disk
echo "::group::Prepare Disk"
sudo mkdir -p /mnt/ocfs2
sudo mkfs.ocfs2 -b 4K -C 32K -L "OCFS2Volume" /dev/sdb
sudo mount -t ocfs2 /dev/sdb /mnt/ocfs2
echo "::endgroup::"

# Create "code" directory in the OCFS2 volume
sudo mkdir -p /mnt/ocfs2/code

# Give ownership to the current user
sudo chown -R $USER:$USER /mnt/ocfs2/code

# Give full permissions to the current user
sudo chmod -R 777 /mnt/ocfs2/code

0 comments on commit 7eab718

Please sign in to comment.