mount(8) needs to be doing silent mounts when doing this brute
forcing or when the filesystem is not explicitly specified.
Reported-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
/*
* The default is to use fstype from cxt->fs, this could be overwritten by
- * @try_type argument.
+ * @try_type argument. If @try_type is specified then mount with MS_SILENT.
*
* Returns: 0 on success,
* >0 in case of mount(2) error (returns syscall errno),
if (!(flags & MS_MGC_MSK))
flags |= MS_MGC_VAL;
+ if (try_type)
+ flags |= MS_SILENT;
DBG(CXT, mnt_debug_h(cxt, "%smount(2) "
"[source=%s, target=%s, type=%s, "
.I /etc/filesystems
ends in a line with a single * only, mount will read
.I /proc/filesystems
-afterwards.
+afterwards. All of the filesystem types will be
+mounted with mount option "silent".
The
.B auto