|
|
49b67f |
autofs-5.1.7 - remove unused function master_submount_list_empty()
|
|
|
49b67f |
|
|
|
49b67f |
From: Ian Kent <raven@themaw.net>
|
|
|
49b67f |
|
|
|
49b67f |
This function is not used anywhere now, remove it.
|
|
|
49b67f |
|
|
|
49b67f |
Signed-off-by: Ian Kent <raven@themaw.net>
|
|
|
49b67f |
---
|
|
|
49b67f |
CHANGELOG | 1 +
|
|
|
49b67f |
daemon/master.c | 12 ------------
|
|
|
49b67f |
include/master.h | 1 -
|
|
|
49b67f |
3 files changed, 1 insertion(+), 13 deletions(-)
|
|
|
49b67f |
|
|
|
49b67f |
--- autofs-5.1.4.orig/CHANGELOG
|
|
|
49b67f |
+++ autofs-5.1.4/CHANGELOG
|
|
|
49b67f |
@@ -45,6 +45,7 @@
|
|
|
49b67f |
- remove redundant local var from sun_mount().
|
|
|
49b67f |
- use mount_fullpath() in one spot in parse_mount().
|
|
|
49b67f |
- pass root length to mount_fullpath().
|
|
|
49b67f |
+- remove unused function master_submount_list_empty().
|
|
|
49b67f |
|
|
|
49b67f |
xx/xx/2018 autofs-5.1.5
|
|
|
49b67f |
- fix flag file permission.
|
|
|
49b67f |
--- autofs-5.1.4.orig/daemon/master.c
|
|
|
49b67f |
+++ autofs-5.1.4/daemon/master.c
|
|
|
49b67f |
@@ -1119,18 +1119,6 @@ int master_read_master(struct master *ma
|
|
|
49b67f |
return 1;
|
|
|
49b67f |
}
|
|
|
49b67f |
|
|
|
49b67f |
-int master_submount_list_empty(struct autofs_point *ap)
|
|
|
49b67f |
-{
|
|
|
49b67f |
- int res = 0;
|
|
|
49b67f |
-
|
|
|
49b67f |
- mounts_mutex_lock(ap);
|
|
|
49b67f |
- if (list_empty(&ap->submounts))
|
|
|
49b67f |
- res = 1;
|
|
|
49b67f |
- mounts_mutex_unlock(ap);
|
|
|
49b67f |
-
|
|
|
49b67f |
- return res;
|
|
|
49b67f |
-}
|
|
|
49b67f |
-
|
|
|
49b67f |
int master_notify_submount(struct autofs_point *ap, const char *path, enum states state)
|
|
|
49b67f |
{
|
|
|
49b67f |
struct mnt_list *this, *sbmnt;
|
|
|
49b67f |
--- autofs-5.1.4.orig/include/master.h
|
|
|
49b67f |
+++ autofs-5.1.4/include/master.h
|
|
|
49b67f |
@@ -116,7 +116,6 @@ void master_free_mapent_sources(struct m
|
|
|
49b67f |
void master_free_mapent(struct master_mapent *);
|
|
|
49b67f |
struct master *master_new(const char *, unsigned int, unsigned int);
|
|
|
49b67f |
int master_read_master(struct master *, time_t);
|
|
|
49b67f |
-int master_submount_list_empty(struct autofs_point *ap);
|
|
|
49b67f |
int master_notify_submount(struct autofs_point *, const char *path, enum states);
|
|
|
49b67f |
void master_notify_state_change(struct master *, int);
|
|
|
49b67f |
int master_mount_mounts(struct master *, time_t);
|