]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Factor code into two new functions in preparation for a future commit.
authorRick Macklem <rmacklem@FreeBSD.org>
Sat, 11 May 2019 22:41:58 +0000 (22:41 +0000)
committerRick Macklem <rmacklem@FreeBSD.org>
Sat, 11 May 2019 22:41:58 +0000 (22:41 +0000)
commit3e08dc749ca08a09aa43d082d616221f4b08988c
treebcf9f377dd6d6fee440c503213266a2c2f94fb68
parent82455a3319a9a31ec3fbdfaadfda5479c26ac388
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