Re: nmount(2) returns undocumented EDEADLK

From: Eugene Grosbein <eugen_at_grosbein.net>
Date: Mon, 06 Dec 2021 15:01:09 UTC
06.12.2021 21:38, Gleb Popov wrote:

> 
> Indeed, I made a mistake in the code so the flags parameter was always 0.
> After fixing it I'm now getting EOPNOTSUPP.
> If remounting as ro is not supported, what are my options?

Improve nullfs to implement such remounting :-)

> Is there any
> semantic difference between remounting with ro and unmounting/mounting
> again?

You will not be able to perform not-forced unmount in case of open files
and maybe even current directory of a process pointing there.