On Thu, Jan 30, 2020 at 11:50:32PM +0000, Mike Gabriel <sunwea...@debian.org> 
wrote:
> This seems like something to be discussed upstream. I Cc:ed Ian Kent, maybe
> he has some 2? to add.

Cool!

In the meantime, I digged a bit more, and it seems that it is because with
misc-device support, autofs uses the AUTOFS_DEV_IOCTL_ISMOUNTPOINT ioctl
to check whether something is a mountpoint, which returns 1, which causes
the code in umount_multi to decude it cannot be symlink and unmounting it.

Indeed, rm /dev/autofs before starting autofs makes it partially work (the
target dir is not unmounted, but the entry is still gone without ghosting).

Upstream probably already knows this, of course.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schm...@schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\

Reply via email to