Page MenuHomeFreeBSD

vfs_export: Simplify vfs_export_lookup
ClosedPublic

Authored by manu on Sep 26 2017, 11:35 AM.
Tags
None
Referenced Files
F109293025: D12505.diff
Mon, Feb 3, 4:21 AM
Unknown Object (File)
Sat, Jan 25, 7:11 PM
Unknown Object (File)
Fri, Jan 24, 7:16 PM
Unknown Object (File)
Fri, Jan 24, 5:03 AM
Unknown Object (File)
Sat, Jan 18, 10:18 PM
Unknown Object (File)
Dec 13 2024, 1:55 PM
Unknown Object (File)
Oct 21 2024, 6:37 PM
Unknown Object (File)
Sep 22 2024, 9:52 PM
Subscribers

Details

Summary

If the filesystem is not exported directly return NULL.
If no address is given and filesystem is exported using some default one
return it directly, if it doesn't have a default one directly return NULL.

MFC After: 1 week
Sponsored-By: Gandi.net

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/kern/vfs_export.c
465 ↗(On Diff #33442)

if ((mp->mnt_flag & MNT_DEFEXPORTED) != 0)

467 ↗(On Diff #33442)

You do not need else

488 ↗(On Diff #33442)

Use 4-spaces indent for continuation.

489 ↗(On Diff #33442)

if (np != NULL && (np->...->rn_flags & RNF_ROOT) != 0)

490 ↗(On Diff #33442)

You might return (NULL) there directly as well.

This revision is now accepted and ready to land.Sep 26 2017, 12:18 PM
kib added inline comments.
sys/kern/vfs_export.c
487 ↗(On Diff #33445)

if (np != NULL && ..

This revision was automatically updated to reflect the committed changes.