Skip to content

List journal filenames in root handle#125

Merged
benbjohnson merged 2 commits intosuperfly:mainfrom
dangra:readdir-journal-files
Oct 19, 2022
Merged

List journal filenames in root handle#125
benbjohnson merged 2 commits intosuperfly:mainfrom
dangra:readdir-journal-files

Conversation

@dangra
Copy link
Member

@dangra dangra commented Oct 19, 2022

Attempt to fix #124

After creating a db and set WAL journal mode, the mounted dir listing is:

$ ls dbs/ -lh
total 0
-rw-rw-rw- 1 daniel daniel 4.0K Oct 19 19:36 state.db
-rw-rw-rw- 1 daniel daniel  32K Oct 19 19:36 state.db-shm
-rw-rw-rw- 1 daniel daniel  37K Oct 19 19:36 state.db-wal

Passes tests:

$ go test -p 1 -timeout 5m ./fuse -journal-mode wal
ok      github.com/superfly/litefs/fuse 1.707s
$ go test -p 1 -timeout 5m ./fuse -journal-mode delete
ok      github.com/superfly/litefs/fuse 1.577s

@benbjohnson
Copy link
Collaborator

Thanks, @dangra. It doesn't look like CI is running for external PRs but the tests are passing locally. 🙏

@benbjohnson benbjohnson merged commit 79c6430 into superfly:main Oct 19, 2022
@benbjohnson benbjohnson added this to the v0.3.0 milestone Nov 16, 2022
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.

Include journal filenames in root listing

2 participants