diff options
author | Ian Kent <raven@themaw.net> | 2021-03-01 17:05:39 +0800 |
---|---|---|
committer | Ian Kent <raven@themaw.net> | 2021-03-15 11:26:34 +0800 |
commit | 0ac112315fe497198f42aa2dd684679aae8be1d5 (patch) | |
tree | cfdc12aa29b498dbcb7f4b41951b410a8f81d1f8 | |
parent | 8120e885601bc892eaf33524d96758f1f13c61a7 (diff) | |
download | autofs-0ac112315fe497198f42aa2dd684679aae8be1d5.tar.gz |
autofs-5.1.7 - add set_offset_tree_catatonic()
Add tree mapent support function set_offset_tree_catatonic().
Signed-off-by: Ian Kent <raven@themaw.net>
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | lib/mounts.c | 15 |
2 files changed, 16 insertions, 0 deletions
@@ -38,6 +38,7 @@ - add tree_mapent_traverse_subtree(). - fix mount_fullpath(). - add tree_mapent_cleanup_offsets(). +- add set_offset_tree_catatonic(). 25/01/2021 autofs-5.1.7 - make bind mounts propagation slave by default. diff --git a/lib/mounts.c b/lib/mounts.c index ba573b9a..f075a27e 100644 --- a/lib/mounts.c +++ b/lib/mounts.c @@ -2578,6 +2578,21 @@ static int set_mount_catatonic(struct autofs_point *ap, struct mapent *me, int i return 0; } +static int set_offset_tree_catatonic_work(struct tree_node *n, void *ptr) +{ + struct mapent *me = MAPENT(n); + struct autofs_point *ap = me->mc->ap; + + set_mount_catatonic(ap, me, me->ioctlfd); + + return 1; +} + +static void set_offset_tree_catatonic(struct autofs_point *ap, struct mapent *me) +{ + tree_traverse_inorder(MAPENT_ROOT(me), set_offset_tree_catatonic_work, NULL); +} + static void set_multi_mount_tree_catatonic(struct autofs_point *ap, struct mapent *me) { if (!list_empty(&me->multi_list)) { |