Re: BUG: mmapfile/writev spurious zero bytes (x86_64/not i386,bisected, reproducable)

From: Bron Gondwana
Date: Tue Jun 17 2008 - 02:26:27 EST



On Tue, 17 Jun 2008 16:00:10 +1000, "Bron Gondwana" <brong@xxxxxxxxxxx> said:
> I apologise for the length of the attached C program. I tried
> to make it shorter, but kept not tickling the bug. There's also
> another advantage of keeping it like this - it closely mirrors the
> Cyrus behaviour, to the point where the output is a valid skiplist
> file.

And I appear to have sent the one without the usage comments at the top.
Here they are:

* USAGE:
* $ gcc -g maptest.c
* $ ./a.out z
* $ hexdump -C z.NEW
*
* Notice the block of zero byte records appearing within
* the output.
*
* Run with a second argument:
*
* $ ./a.out z 1
* $ hexdump -C z.NEW
*
* No more zeros!

Bron.
--
Bron Gondwana
brong@xxxxxxxxxxx

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/