Subject: RE: test-symlink fails on "lustre" file system

From: "Oppe, Thomas C ERDC-RDE-ITL-MS Contractor" <[email-masked]>
Date: Fri, 6 Sep 2019 19:03:54 +0000

Bruno,

The contents of the file

gettext-0.20.1/gettext-tools/gnulib-tests/test-symlink.log

are

INSERTED errno=2
test-symlink.h:71: assertion 'errno == EEXIST || errno == EINVAL' failed
FAIL test-symlink (exit status: 134)

Tom Oppe

-----Original Message-----
From: Bruno Haible [mailto:[email-masked]] 
Sent: Friday, September 6, 2019 5:43 AM
To: [email-masked]
Cc: Assaf Gordon <[email-masked]>; [email-masked]; Oppe,
Thomas C ERDC-RDE-ITL-MS Contractor <[email-masked]>
Subject: Re: test-symlink fails on "lustre" file system

Assaf Gordon wrote:
> based on the code in test-symlink.h, perhaps lustre returns an 
> unexpected errno ?
> 
> line 69: ASSERT (func ("nowhere", BASE "dir/") == -1);
> 
> line 70: ASSERT (errno == EEXIST || errno == EINVAL);

Yes, this is most likely the cause. Can you please insert this line between
line 69 and line 70

    fprintf(stderr,"INSERTED errno=%d\n",errno); fflush(stderr);

then do
   make clean
   make
   make check

and report the output and contents of test-symlink.log ?

Lustre contains a number of kernel patches [1]; this can surely modify the
behaviour of system calls.

Bruno

[1] Blockedhttp://lustre.org/download/Blocked