Skip to content

Commit

Permalink
Mount F2FS.
Browse files Browse the repository at this point in the history
  • Loading branch information
ncruces committed Mar 20, 2024
1 parent 3658354 commit d6a9ef4
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/bsd.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail

echo 'set -euo pipefail' > test.sh

Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/f2fs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail

cd tests/testdata
mkdir -p f2fs
gunzip -c f2fs.img.gz > f2fs.img
sudo mount -v -o loop f2fs.img ./f2fs
date > ./f2fs/date
cat ./f2fs/date
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,10 @@ jobs:

- name: Test
run: GOARCH=arm64 go test -v -short ./...

test-f2fs:
runs-on: ubuntu-latest

steps:
- name: Mount F2FS
run: f2fs.sh
Binary file added tests/testdata/f2fs.img.gz
Binary file not shown.

0 comments on commit d6a9ef4

Please sign in to comment.