Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Vaiz
Copy link
Owner

@Vaiz Vaiz commented Jun 11, 2025

nfs3_types:

  • feat: derive Default for createverf3

nfs3_server:

  • feat!: add createverf parameter to NfsFileSystem::create_exclusive method
  • feat: implement NfsFileSystem::create_exclusive for MemFs

@Vaiz Vaiz requested a review from Copilot June 11, 2025 11:30
@Vaiz Vaiz changed the title feat: add createverf argument feat: add createverf parameter to NfsFileSystem::create_exclusive method Jun 11, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for NFSv3 exclusive create verifiers by extending the createverf3 type and updating the server, filesystem adapters, tests, and examples to pass the verifier through create_exclusive.

  • Derive Default for createverf3 and update tests to use non-zero verifiers
  • Change the NfsFileSystem::create_exclusive signature and implementations to accept a createverf3 argument
  • Update wasm FS, in-memory FS, mirror FS, and adapters (including examples) to propagate the new verifier parameter

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
crates/nfs3_types/src/nfs3.rs Added Default derive to createverf3
crates/nfs3_tests/tests/base_tests.rs Updated tests to pass explicit verifiers
crates/nfs3_tests/src/wasm_fs.rs Added createverf parameter to stub implementation
crates/nfs3_server/src/vfs/mod.rs Updated trait create_exclusive signature & docs
crates/nfs3_server/src/vfs/adapter.rs Added adapter stub for new parameter
crates/nfs3_server/src/nfs_handlers.rs Propagate verifier to handler
crates/nfs3_server/src/memfs/mod.rs In-memory FS stores and compares createverf3
crates/nfs3_server/src/memfs/config.rs Extracted MemFsConfig into its own module
crates/nfs3_server/examples/mirrorfs.rs Updated mirror FS stub to accept verifier
crates/cargo_nfs3_server/src/mirror.rs Updated CLI mirror to propagate verifier
Comments suppressed due to low confidence (3)

crates/nfs3_tests/src/wasm_fs.rs:321

  • Parameter createverf is currently unused in this stub; consider renaming to _createverf or prefixing with an underscore to avoid compiler warnings.
        createverf: createverf3,

crates/nfs3_server/src/vfs/mod.rs:223

  • The create_exclusive doc comment does not mention the new createverf parameter. Please update the documentation to explain its role in exclusive create semantics.
    fn create_exclusive(

crates/nfs3_server/examples/mirrorfs.rs:569

  • The CreateFSObject::Exclusive variant now requires a createverf3 argument. Update this call to pass the _createverf parameter (e.g., &CreateFSObject::Exclusive(_createverf)).
            .create_fs_object(dirid.as_u64(), filename, &CreateFSObject::Exclusive)

@Vaiz Vaiz merged commit 799fa0c into main Jun 11, 2025
7 checks passed
@Vaiz Vaiz deleted the memfs branch June 11, 2025 12:12
@github-actions github-actions bot mentioned this pull request Jun 11, 2025
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.

1 participant