]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Deduplicate fsid comparisons
authorfreqlabs <freqlabs@FreeBSD.org>
Thu, 21 May 2020 01:55:35 +0000 (01:55 +0000)
committerfreqlabs <freqlabs@FreeBSD.org>
Thu, 21 May 2020 01:55:35 +0000 (01:55 +0000)
commit30596480c966b8d8bc7436df3467ab2eac145751
treebd3f30b09ed71ce881641d920535207ad89d75dc
parent897ced70e6be0857bcf563fa14c0626bdaa9d8f5
Deduplicate fsid comparisons

Comparing fsid_t objects requires internal knowledge of the fsid structure
and yet this is duplicated across a number of places in the code.

Simplify by creating a fsidcmp function (macro).

Reviewed by: mjg, rmacklem
Approved by: mav (mentor)
MFC after: 1 week
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D24749
13 files changed:
lib/libugidfw/ugidfw.c
sbin/mksnap_ffs/mksnap_ffs.c
sbin/umount/umount.c
sys/fs/nfs/nfsdport.h
sys/fs/nfsserver/nfs_nfsdport.c
sys/fs/nfsserver/nfs_nfsdsocket.c
sys/fs/nfsserver/nfs_nfsdstate.c
sys/kern/vfs_subr.c
sys/security/mac_bsdextended/mac_bsdextended.c
sys/security/mac_bsdextended/mac_bsdextended.h
sys/sys/mount.h
usr.sbin/autofs/autounmountd.c
usr.sbin/mountd/mountd.c