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