Re: Bug#714733: Inside a schroot environment renaming directories inside /tmp fails in GNU/Hurd
Samuel Thibault, le Sun 07 Jul 2013 00:18:38 +0200, a écrit :
> Samuel Thibault, le Sat 06 Jul 2013 22:38:11 +0200, a écrit :
> > Mattias Ellert, le Tue 02 Jul 2013 12:00:03 +0200, a écrit :
> > > Inside a schroot environment renaming directories inside /tmp fails with
> > > "Resource temporarily unavailable".
> > This definitely looks like an issue in the firmlink translator. Too bad
> > we never noticed it.
> Interestingly, things work fine for files in /home apparently simply
> because the firmlink target is itself an ext2fs translator.
Ok, found the issue: when reached through a firmlink, the ext2fs port is
actually using a shadow root (because firmlink reparents the port to its
parent). When checking out for "mv in itself", dir-renamed goes up to
the shadow root instead of the root, and gets dazed about it. Since we
early prevent renaming between different shadow roots, the fix is simply
about comparing against the shadow root, not only the actual root.