Skip to content

Conversation

@anodos325
Copy link
Contributor

This commit adds support for converting a file handle to its parent dentry. This is called in exportfs_decode_fh_raw() when subtree checking is enabled in NFS. Defining this and handling the expanded filehandles allows the knfsd to succeed in handling the file handle where it might otherwise fail with ESTALE when trying to open by filehandle.

A side effect of this change is that name_to_handle_at(2) and open_by_handle_at(2) now support AT_HANDLE_CONNECTABLE, which was introduced in kernel 6.13.

Copy link
Contributor

@behlendorf behlendorf left a comment

Choose a reason for hiding this comment

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

Nice. Thanks for adding this support.

@behlendorf behlendorf added the Status: Accepted Ready to integrate (reviewed, tested) label Jan 5, 2026
@anodos325
Copy link
Contributor Author

Ameer sent me a private message about a potential issue here. Let's hold off on merge for a few days till I ack back here post-investigation.

@behlendorf behlendorf added Status: Work in Progress Not yet ready for general review and removed Status: Accepted Ready to integrate (reviewed, tested) labels Jan 5, 2026
@anodos325 anodos325 force-pushed the add-fh_to_parent-master branch from 114b8ca to c3e8d57 Compare January 7, 2026 16:30
@ixhamza ixhamza removed the Status: Work in Progress Not yet ready for general review label Jan 7, 2026
Copy link
Contributor

@behlendorf behlendorf left a comment

Choose a reason for hiding this comment

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

This still looks good. If you could just confirm you guys are happy with the latest version we can merge it.

@behlendorf behlendorf added the Status: Accepted Ready to integrate (reviewed, tested) label Jan 8, 2026
@anodos325
Copy link
Contributor Author

Yes. This is correct now as confirmed by Ameer as well via approval.

@amotin amotin added Status: Work in Progress Not yet ready for general review and removed Status: Accepted Ready to integrate (reviewed, tested) labels Jan 8, 2026
@amotin
Copy link
Member

amotin commented Jan 8, 2026

One more small change is coming.

This commit adds support for converting a file handle to its
parent dentry. This is called in exportfs_decode_fh_raw()
when subtree checking is enabled in NFS. Defining this and
handling the expanded filehandles allows the knfsd to succeed
in handling the file handle where it might otherwise fail
with ESTALE when trying to open by filehandle.

A side effect of this change is that name_to_handle_at(2)
and open_by_handle_at(2) now support AT_HANDLE_CONNECTABLE.

Signed-off-by: Andrew Walker <[email protected]>
@anodos325 anodos325 force-pushed the add-fh_to_parent-master branch from c3e8d57 to dedd939 Compare January 8, 2026 17:57
@amotin amotin added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Work in Progress Not yet ready for general review labels Jan 8, 2026
@behlendorf behlendorf merged commit aca58db into openzfs:master Jan 8, 2026
24 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: Accepted Ready to integrate (reviewed, tested)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants