Subject: Re: bug#42579: jfs-root-os test failing
From: Mathieu Othacehe <[email-masked]>
To: [email-masked]
Date: Tue, 28 Jul 2020 14:17:12 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

> The "jfs-root-os" test is failing since a few weeks. See:
> https://ci.guix.gnu.org/build/3038686/details.
>
> The issue is that some "link" syscall fails during "guix system init"
> call.

This is fixed by 8b221b64a552d31e241701aa5c6d339287a7a15b on master. The
problem was occuring inside "deduplicate" procedure of (guix store
deduplication).

This procedure uses scandir* to check if the path to deduplicate is a
directory. The problem is that JFS does not support d_type so, the file
property returned was 'unknown. As this particular case was not handled,
directories were not detected as such, causing the procedure to call
"link" on a directory, which was failing.

Mathieu