All of lore.kernel.org
 help / color / mirror / Atom feed
* Unable to set log priority for all direct mounts
@ 2026-05-14 20:01 Goldwyn Rodrigues
  2026-05-15 13:59 ` Ian Kent
  0 siblings, 1 reply; 2+ messages in thread
From: Goldwyn Rodrigues @ 2026-05-14 20:01 UTC (permalink / raw)
  To: autofs; +Cc: lidong.zhong

Hello,

Since the work to have a single FIFO file for setting log priority
(16ea4156 ("autofs-5.1.8 - switch to application wide command pipe"), to
be more precise 16ea4156 (autofs-5.1.8 - switch to application wide
command pipe), automount has lost the ability to set the log priority of
all direct mounts using the path "/-".


# sudo automount -l info /-
Could not find device id for mount /-

This is because automount attempts to mount and get verifies the real
path which is non-existent in case of direct mounts "/-".

In the automount program, the log priority is set pretty early and much
before the master map is setup. So we cannot check on the autofs dev
either.

What would be the best way to solve this? Should we just document it
as a feature loss?

-- 
Goldwyn

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Unable to set log priority for all direct mounts
  2026-05-14 20:01 Unable to set log priority for all direct mounts Goldwyn Rodrigues
@ 2026-05-15 13:59 ` Ian Kent
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Kent @ 2026-05-15 13:59 UTC (permalink / raw)
  To: Goldwyn Rodrigues, autofs; +Cc: lidong.zhong

On 15/5/26 04:01, Goldwyn Rodrigues wrote:
> Hello,
>
> Since the work to have a single FIFO file for setting log priority
> (16ea4156 ("autofs-5.1.8 - switch to application wide command pipe"), to
> be more precise 16ea4156 (autofs-5.1.8 - switch to application wide
> command pipe), automount has lost the ability to set the log priority of
> all direct mounts using the path "/-".
>
>
> # sudo automount -l info /-
> Could not find device id for mount /-
>
> This is because automount attempts to mount and get verifies the real
> path which is non-existent in case of direct mounts "/-".

Of course yes.


>
> In the automount program, the log priority is set pretty early and much
> before the master map is setup. So we cannot check on the autofs dev
> either.

But it should be settable on a per-mount basis.

The command line log setting was always meant to modify an existing

global log priority. Setting it for /- should mean setting it for

all direct mounts, ie. the global setting.


>
> What would be the best way to solve this? Should we just document it
> as a feature loss?

It sounds more like a regression, I'd rather try and fix it.


There should be (is/used to be?) a global log priority for both direct

and indirect mounts which shouldn't need this sort of validation and

should be used if the validation fails.


Let me have a look and get back.


Ian


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-05-15 13:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-14 20:01 Unable to set log priority for all direct mounts Goldwyn Rodrigues
2026-05-15 13:59 ` Ian Kent

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.