diff options
author | Scott Mayhew <smayhew@redhat.com> | 2017-02-15 10:16:35 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2017-02-15 10:41:59 -0500 |
commit | 1789737ec6dd43c9d1436aeb6c07fab52206f412 (patch) | |
tree | 8de3910340ba6eaa293933cea8549cdd9f24e71e /support/include/misc.h | |
parent | 0712b5507866d6b3c900623eb1f81fffaec80ae2 (diff) | |
download | nfs-utils-1789737ec6dd43c9d1436aeb6c07fab52206f412.tar.gz nfs-utils-1789737ec6dd43c9d1436aeb6c07fab52206f412.tar.xz nfs-utils-1789737ec6dd43c9d1436aeb6c07fab52206f412.zip |
libnsm.a: refactor nsm_setup_pathnames() and nsm_make_pathname()
Move the logic in nsm_setup_pathnames() and nsm_make_pathname() to
similar generic functions in libmisc.a so that the exportfs and
rpc.mountd programs can make use of them later.
Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/include/misc.h')
-rw-r--r-- | support/include/misc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/support/include/misc.h b/support/include/misc.h index eedc1fe..06e2a0c 100644 --- a/support/include/misc.h +++ b/support/include/misc.h @@ -15,6 +15,9 @@ int randomkey(unsigned char *keyout, int len); int weakrandomkey(unsigned char *keyout, int len); +char *generic_make_pathname(const char *, const char *); +_Bool generic_setup_basedir(const char *, const char *, char *, const size_t); + extern int is_mountpoint(char *path); /* size of the file pointer buffers for rpc procfs files */ |