first test release for 2.2.1
Andreas Jaeger
aj@suse.de
Sun Jan 7 23:05:00 GMT 2001
>>>>> Joseph S Myers writes:
> On 7 Jan 2001, Andreas Jaeger wrote:
>> >>>>> Joseph S Myers writes:
>>
>> > I get the following test failure on i686-linux when building against 2.4.0
>> > kernel headers but running under 2.2.18:
>>
>> Which file system?
> ext2fs.
>> stat shouldn't return st_size=5 - that's a bug in 2.2.18,
> The problem seems to be that the llseek fails with EINVAL. With 2.2.17,
> the llseek succeeds and the write fails with EINVAL, which the testcase
> handles as indicating LFS not supported. This looks like a deliberate
> change in 2.2.18 (fs/ext2/file.c), so the testcase should probably treat
> EINVAL from lseek64 the same as ENOSYS.
We should do that - what about the appended patch?
Andreas
2001-01-08 Andreas Jaeger <aj@suse.de>
* io/test-lfs.c (do_test): Check lseek64 return for EINVAL.
Reported by Joseph S. Myers <jsm28@cam.ac.uk>.
============================================================
Index: io/test-lfs.c
--- io/test-lfs.c 2000/11/20 17:38:19 1.5
+++ io/test-lfs.c 2001/01/08 07:04:42
@@ -1,5 +1,5 @@
/* Some basic tests for LFS.
- Copyright (C) 2000 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2001 Free Software Foundation, Inc.
Contributed by Andreas Jaeger <aj@suse.de>, 2000.
The GNU C Library is free software; you can redistribute it and/or
@@ -98,6 +98,11 @@
if (ret == -1 && errno == ENOSYS)
{
error (0, errno, "lseek64 is not supported");
+ exit (EXIT_SUCCESS);
+ }
+ if (ret == -1 && errno == EINVAL)
+ {
+ error (0, errno, "LFS seems not to be supported ");
exit (EXIT_SUCCESS);
}
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
More information about the Libc-alpha
mailing list