Page MenuHomeFreeBSD

vfs_export: Simplify vfs_export_lookup
ClosedPublic

Authored by manu on Sep 26 2017, 11:35 AM.
Tags
None
Referenced Files
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
Unknown Object (File)
Sep 22 2024, 2:57 PM
Unknown Object (File)
Sep 12 2024, 2:47 AM
Unknown Object (File)
Sep 8 2024, 10:42 PM
Unknown Object (File)
Sep 8 2024, 4:18 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 Skipped
Unit
Tests Skipped

Event Timeline

sys/kern/vfs_export.c
465

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

467

You do not need else

473

Use 4-spaces indent for continuation.

474

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

475

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

if (np != NULL && ..

This revision was automatically updated to reflect the committed changes.