1
autofs-5.0.5 - Make "verbose" mode a little less verbose
3
From: Leonardo Chiquitto <leonardo.lists@gmail.com>
5
Remove some log message duplication for verbose logging.
8
daemon/automount.c | 2 +-
10
modules/mount_changer.c | 2 +-
11
modules/mount_ext2.c | 2 +-
12
modules/mount_generic.c | 2 +-
13
modules/mount_nfs.c | 2 +-
14
6 files changed, 6 insertions(+), 6 deletions(-)
17
diff --git a/daemon/automount.c b/daemon/automount.c
18
index 206734b..9939a25 100644
19
--- a/daemon/automount.c
20
+++ b/daemon/automount.c
21
@@ -512,7 +512,7 @@ static int umount_subtree_mounts(struct autofs_point *ap, const char *path, unsi
22
* it already to ensure it's ok to remove any offset triggers.
24
if (!is_mm_root && is_mounted(_PATH_MOUNTED, path, MNTS_REAL)) {
25
- info(ap->logopt, "unmounting dir = %s", path);
26
+ debug(ap->logopt, "unmounting dir = %s", path);
27
if (umount_ent(ap, path)) {
28
warn(ap->logopt, "could not umount dir %s", path);
30
diff --git a/daemon/lookup.c b/daemon/lookup.c
31
index f5d9da8..a4bd07f 100644
34
@@ -688,7 +688,7 @@ static int lookup_name_file_source_instance(struct autofs_point *ap, struct map_
37
if (stat(map->argv[0], &st) == -1) {
38
- warn(ap->logopt, "file map not found");
39
+ debug(ap->logopt, "file map not found");
40
return NSS_STATUS_NOTFOUND;
43
diff --git a/modules/mount_changer.c b/modules/mount_changer.c
44
index f4d82dd..d7bfa09 100644
45
--- a/modules/mount_changer.c
46
+++ b/modules/mount_changer.c
47
@@ -129,7 +129,7 @@ int mount_mount(struct autofs_point *ap, const char *root, const char *name, int
51
- info(ap->logopt, MODPREFIX "mounted %s type %s on %s",
52
+ debug(ap->logopt, MODPREFIX "mounted %s type %s on %s",
53
what, fstype, fullpath);
56
diff --git a/modules/mount_ext2.c b/modules/mount_ext2.c
57
index 26d59d1..1edf347 100644
58
--- a/modules/mount_ext2.c
59
+++ b/modules/mount_ext2.c
60
@@ -140,7 +140,7 @@ int mount_mount(struct autofs_point *ap, const char *root, const char *name, int
66
MODPREFIX "mounted %s type %s on %s",
67
what, fstype, fullpath);
69
diff --git a/modules/mount_generic.c b/modules/mount_generic.c
70
index da85d1a..79e3d32 100644
71
--- a/modules/mount_generic.c
72
+++ b/modules/mount_generic.c
73
@@ -122,7 +122,7 @@ int mount_mount(struct autofs_point *ap, const char *root, const char *name, int
77
- info(ap->logopt, MODPREFIX "mounted %s type %s on %s",
78
+ debug(ap->logopt, MODPREFIX "mounted %s type %s on %s",
79
loc, fstype, fullpath);
82
diff --git a/modules/mount_nfs.c b/modules/mount_nfs.c
83
index 21e1929..9110eba 100644
84
--- a/modules/mount_nfs.c
85
+++ b/modules/mount_nfs.c
86
@@ -251,7 +251,7 @@ int mount_mount(struct autofs_point *ap, const char *root, const char *name, int
90
- info(ap->logopt, MODPREFIX "mounted %s on %s", loc, fullpath);
91
+ debug(ap->logopt, MODPREFIX "mounted %s on %s", loc, fullpath);
93
free_host_list(&hosts);