]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Factor code into two new functions in preparation for a future commit.
authorrmacklem <rmacklem@FreeBSD.org>
Sat, 11 May 2019 22:41:58 +0000 (22:41 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Sat, 11 May 2019 22:41:58 +0000 (22:41 +0000)
commit947c94708107c0e0cb86743a7db47e705466fb2f
treebcf9f377dd6d6fee440c503213266a2c2f94fb68
parentc84148444def0344c4a76f22f4de45951127918d
Factor code into two new functions in preparation for a future commit.

Factor code into two functions.
read_exportfile() a functon  which reads the exports file(s) and calls
get_exportlist_one() to process each of them.
delete_export() a function which deletes the exports in the kernel for a file
system.
The contents of these functions is just the same code as was used to do the
operations, moved into separate functions. As such, there is no semantic change.
This is being done in preparation for a future commit that will add an
option to do incremental changes of kernel exports upon receiving SIGHUP.

MFC after: 1 month
usr.sbin/mountd/mountd.c