summaryrefslogtreecommitdiffstats
path: root/support/nfs/exports.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2016-11-16 13:15:44 -0500
committerSteve Dickson <steved@redhat.com>2016-11-16 13:16:21 -0500
commit126c48afb88245a03bd5e388846d5a68ed4bb2df (patch)
tree8b78e19b93ebd752ff2e44c3932971c656de0e5f /support/nfs/exports.c
parent394e388e1e62d88f2771a3a65ed34c63c1e481bf (diff)
downloadnfs-utils-126c48afb88245a03bd5e388846d5a68ed4bb2df.tar.gz
nfs-utils-126c48afb88245a03bd5e388846d5a68ed4bb2df.tar.xz
nfs-utils-126c48afb88245a03bd5e388846d5a68ed4bb2df.zip
nfsdcltrack: read configuration from a file
As nfsdcltrack is normally run directly from the kernel there is no opportunity to change the default storage directory. This can be useful in a cluster to locate the "storage directory" on shared storage. The easiest alternative is to allow configuration to be read from a file, particularly as nfs-utils already has code for parsing a config file. So read the config file "/etc/nfs.conf" (or as set by ./configure) and look for "storagedir" and "debug" in the "nfsdcltrack" section. These values can still be over-ridden by command line options. A generic name (nfs.conf) was changes for the config file so that other daemons can be enhanced to read configuration from there. This may be easier than passing command line arguments through systemd. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/nfs/exports.c')
0 files changed, 0 insertions, 0 deletions