Skip to content

api-test: add posixfs scan and consistency CLI tests - #3263

Open
v-scharf wants to merge 1 commit into
mainfrom
test/posixfs-scan-consistency-cli
Open

api-test: add posixfs scan and consistency CLI tests#3263
v-scharf wants to merge 1 commit into
mainfrom
test/posixfs-scan-consistency-cli

Conversation

@v-scharf

@v-scharf v-scharf commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

test for:

/var/lib/opencloud # opencloud posixfs scan --help
Perform a filesystem scan and update the ID and filemetadata cache.

You can specify one or more paths to limit the scope of the scan.
If no path is provided, the whole storage is checked, starting at the storage root directory.

The provided arguments determines the scope of the check:
  - a storage root:   the whole storage (all personal and project spaces) is scanned
  - a space root:     only that space is scanned
  - a file or directory: only that single resource is scanned (and its children, if it is a directory)

Any specified file or directory must be underneath the storage root directory and if that is not the case,
the command is aborted with an error before performing any scanning.

Usage:
  opencloud posixfs scan [path ...] [flags]

Flags:
  -E, --halt-on-error   Halt at once when an error occurs when processing one of the paths (default behaviour is to keep going and attempt to process all paths).
  -h, --help            help for scan

and

/var/lib/opencloud # opencloud posixfs consistency --help
Check the consistency of the posixfs storage.

You can specify one or more paths to limit the scope of the check.
If no path is provided, the whole storage is checked.

The provided arguments determines the scope of the check:
  - a storage root:   the whole storage (all personal and project spaces) is checked
  - a space root:     only that space is checked
  - a file or directory: only that single entity is checked (and its children, if it is a directory)

Usage:
  opencloud posixfs consistency [path ...] [flags]

Flags:
      --fix-checksums   Recalculate and fix the file checksums. This reads every file and can be slow on large storages.
  -h, --help            help for consistency

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@v-scharf
v-scharf force-pushed the test/posixfs-scan-consistency-cli branch from 23fe1f1 to 129c4f3 Compare August 7, 2026 13:41
@v-scharf
v-scharf requested a review from saw-jan August 7, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant