]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
mount_nullfs: rename a local variable
authorAlan Somers <asomers@FreeBSD.org>
Fri, 12 Feb 2021 18:30:52 +0000 (11:30 -0700)
committerAlan Somers <asomers@FreeBSD.org>
Thu, 8 Apr 2021 21:32:55 +0000 (21:32 +0000)
commit5061d5a0cfaf68a6891db82f6bd26ad3e72e87b1
treed46dc1622f1a69f64f01a3934cae6e36c56fe850
parentb5cf839053fef6da328d7b90d2475e8bb82bfa30
mount_nullfs: rename a local variable

The "source" variable was introduced in r26072, probably as the
traditional counterpart to "target".  But the "source"/"target" names
suggest the opposite of their actual meaning.  With ln, for example, the
source is the real file and the target is the newly created link.  In
mount_nullfs the meaning is the opposite: the target is the existing
file system and the source is the newly created mountpoint.  Better to
use "target"/"mountpoint" terminology, which matches the man page.

Sponsored by: Axcient

(cherry picked from commit f540cb27a23719d88b7e5143be6e62f75dd25f08)
sbin/mount_nullfs/mount_nullfs.c