All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: zeroes read back more often than appended
@ 2003-10-07 19:02 Pat LaVarre
  2003-10-07 20:54 ` Pat LaVarre
  2003-10-08  3:49 ` Ben Fennema
  0 siblings, 2 replies; 40+ messages in thread
From: Pat LaVarre @ 2003-10-07 19:02 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: linux_udf

Maybe I should have cc'ed linux-fsdevel@vger.kernel.org when I launched
this thread in linux_udf@hpesjro.fc.hp.com ...

-----Forwarded Message-----

Subject: zeroes read back more often than appended
Date: 06 Oct 2003 21:54:15 -0600
To: linux_udf@hpesjro.fc.hp.com

Is it legit to combine mkudffs 1.0.0b2 with linux-2.6.0-test6?

And to run mkudffs on top of a loop device?

I ask because:

I wrote the following short programs (a bash script and a C routine) to
fopen, iterate "height" times to fwrite a "width" of bytes once or
repeatedly, and fclose.

With mkfs and ext3, I see this trivial code reliably produces expected
results i.e. a file full of '\xAA' e.g.

00000000  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa  |................|
*
00fffff0  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa     |...............|

With linux-2.6.0-test6 mkudffs and udf.ko of 1 GiB loop device, I see
this trivial code reliably produces wrong results for certain small
width and height combinations, such as:

udfwh mkudffs 0xFFFF 0xC00
udfwh mkudffs 0xFFFFFF 0xB
udfwh mkudffs 0xFFFFFFF 0x1
udfwh mkudffs 0x7800000 0x1

With mkudffs, my results grow indeterminate below somewhere near the
0x7800000 boundary (120 MiB).  0x7400000 often fails.  My logs tell me
0x7298000 once failed for me, but I can't easily repeat that result.

My wrong results have lots of zeroes in place of the data written e.g.

hexdump -C wh.bin | head -3
00000000  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa  |................|
*
0375e000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|

Every time I've looked, the zeroes appear aligned to at least 2 KiB
boundaries.

Explanations, anyone?

Pat LaVarre

/// udfwh

#!/bin/bash -x

rm dd.bin
dd if=/dev/zero of=dd.bin bs=1M seek=1023 count=1
ls -l dd.bin
sudo losetup /dev/loop0 dd.bin
sudo $1 2>&1 | head -1
sudo $1 /dev/loop0
sudo mount /dev/loop0 /mnt/loop0
sudo chown `id -u`:`id -g` /mnt/loop0/.
cd /mnt/loop0
time wh $2 $3
cd -
sudo umount /mnt/loop0
sudo losetup -d /dev/loop0

/// wh.c

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(int argc, char * argv[]) // 0xFF600 0xC8
{
	int width;
	int height;
	char * chars;
	char nonzero;
	FILE * fi;
	int i;
	int rc;
	char const * st;

	--argc; ++argv;
	assert(argc == 2);
	rc = sscanf(argv[0], "0x%X", &width);
	assert(rc == 1);
	rc = sscanf(argv[1], "0x%X", &height);
	assert(rc == 1);

	nonzero = '\xAA';
	chars = malloc(width);
	assert(chars != NULL);
	memset(&chars[0], nonzero, width);

	fi = fopen("wh.bin", "wb");
	assert(fi != NULL);
	for (i = 0; i < height; ++i) {
		fprintf(stderr, "\r%d ", height - i - 1);
		rc = fwrite(chars, 1, width, fi);
		assert(rc == width);
	}
	rc = fclose(fi);
	assert(rc == 0);
	fprintf(stderr, "\n");

	st = "hexdump -C wh.bin | head -3";
	fprintf(stderr, "%s\n", st);
	(void) system(st);

	return 0;
}

/// dmesg (boring, I think?)

> UDF-fs DEBUG fs/udf/lowlevel.c:65:udf_get_last_session: CDROMMULTISESSION not supported: rc=-22
> UDF-fs DEBUG fs/udf/super.c:1471:udf_fill_super: Multi-session=0
> UDF-fs DEBUG fs/udf/super.c:459:udf_vrs: Starting at sector 16 (2048 byte sectors)
> UDF-fs DEBUG fs/udf/super.c:802:udf_load_pvoldesc: recording time 1065498482/249678, 2003/10/06 21:48 (1e98)
> UDF-fs DEBUG fs/udf/super.c:813:udf_load_pvoldesc: volIdent[] = 'LinuxUDF'
> UDF-fs DEBUG fs/udf/super.c:820:udf_load_pvoldesc: volSetIdent[] = '3f823772LinuxUDF'
> UDF-fs DEBUG fs/udf/super.c:1012:udf_load_logicalvol: Partition (0:0) type 1 on volume 1
> UDF-fs DEBUG fs/udf/super.c:1022:udf_load_logicalvol: FileSet found in LogicalVolDesc at block=32, partition=0
> UDF-fs DEBUG fs/udf/super.c:850:udf_load_partdesc: Searching map: (0 == 0)
> UDF-fs DEBUG fs/udf/super.c:891:udf_load_partdesc: unallocSpaceBitmap (part 0) @ 0
> UDF-fs DEBUG fs/udf/super.c:932:udf_load_partdesc: Partition (0:0 type 1511) starts at physical 274, block length 523757
> UDF-fs DEBUG fs/udf/super.c:1265:udf_load_partition: Using anchor in block 256
> UDF-fs DEBUG fs/udf/super.c:1498:udf_fill_super: Lastblock=0
> UDF-fs DEBUG fs/udf/super.c:774:udf_find_fileset: Fileset at block=32, partition=0
> UDF-fs DEBUG fs/udf/super.c:836:udf_load_fileset: Rootdir at block=34, partition=0
> UDF-fs INFO UDF 0.9.7 (2002/11/15) Mounting volume 'LinuxUDF', timestamp 2003/10/06 21:48 (1e98)

///




^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: zeroes read back more often than appended
  2003-10-07 19:02 zeroes read back more often than appended Pat LaVarre
@ 2003-10-07 20:54 ` Pat LaVarre
  2003-10-08  3:49 ` Ben Fennema
  1 sibling, 0 replies; 40+ messages in thread
From: Pat LaVarre @ 2003-10-07 20:54 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: linux_udf

I first saw udf.ko of loop.ko read more zeroes than appended in RedHat
2.6.0-test6 on one pc described by dmesg as:
495MB LOWMEM available.
CPU0: Intel(R) Pentium(R) 4 CPU 2.40GHz stepping 09
CPU1: Intel(R) Pentium(R) 4 CPU 2.40GHz stepping 09
..... host bus clock speed is 199.0492 MHz.

I intend to try a number of 2.6 pc's, to see if I get consistent
results.

But initially just now, I thought I should mention, I see correct '\xAA'
read back, no troublesome zeroes, in Knoppix 2.4.22-xfs on a third pc,
in 30..90 s/test, with a loop on ext2, on one pc described by dmesg as:
255MB LOWMEM available.
Detected 866.394 MHz processor.
CPU0: Intel Pentium III (Coppermine) stepping 03
..... host bus clock speed is 133.2875 MHz.

As I repeated this test, I regretfully noticed that my original
instructions did not explicitly include such further hints as:

sudo mkdir /mnt/loop0

# visit http://sourceforge.net/projects/linux-udf/
cp -ip udftools-1.0.0b2/mkudffs/mkudffs ~/bin

Also machines with less calloc'able virtual memory and/or low quotas
can't demo that a single fwrite reads more zeroes than appended:

udfwh mkudffs 0x7800000 0x1
udfwh mkudffs 0xFFFFFFF 0x1

Instead because of those limits on such machines we can only repeat the
themultiple fwrite tests e.g.

udfwh mkudffs 0xFFFFFF 0xB
udfwh mkudffs 0xFFFF 0xC00

Pat LaVarre



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: zeroes read back more often than appended
  2003-10-07 19:02 zeroes read back more often than appended Pat LaVarre
  2003-10-07 20:54 ` Pat LaVarre
@ 2003-10-08  3:49 ` Ben Fennema
  2003-10-08 16:41   ` Pat LaVarre
                     ` (3 more replies)
  1 sibling, 4 replies; 40+ messages in thread
From: Ben Fennema @ 2003-10-08  3:49 UTC (permalink / raw)
  To: Pat LaVarre; +Cc: linux-fsdevel, linux_udf

I can't repeat this on 2.4 or 2.6.0-test6 non-smp.

I'll see if I can figure out whats going on in 2.6.0-test6-smp.

Somehow unrecorded block(s) are getting inserted in the data.

Ben

On Tue, Oct 07, 2003 at 01:02:21PM -0600, Pat LaVarre wrote:
> Maybe I should have cc'ed linux-fsdevel@vger.kernel.org when I launched
> this thread in linux_udf@hpesjro.fc.hp.com ...
> 
> -----Forwarded Message-----
> 
> Subject: zeroes read back more often than appended
> Date: 06 Oct 2003 21:54:15 -0600
> To: linux_udf@hpesjro.fc.hp.com
> 
> Is it legit to combine mkudffs 1.0.0b2 with linux-2.6.0-test6?
> 
> And to run mkudffs on top of a loop device?
> 
> I ask because:
> 
> I wrote the following short programs (a bash script and a C routine) to
> fopen, iterate "height" times to fwrite a "width" of bytes once or
> repeatedly, and fclose.
> 
> With mkfs and ext3, I see this trivial code reliably produces expected
> results i.e. a file full of '\xAA' e.g.
> 
> 00000000  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa  |................|
> *
> 00fffff0  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa     |...............|
> 
> With linux-2.6.0-test6 mkudffs and udf.ko of 1 GiB loop device, I see
> this trivial code reliably produces wrong results for certain small
> width and height combinations, such as:
> 
> udfwh mkudffs 0xFFFF 0xC00
> udfwh mkudffs 0xFFFFFF 0xB
> udfwh mkudffs 0xFFFFFFF 0x1
> udfwh mkudffs 0x7800000 0x1
> 
> With mkudffs, my results grow indeterminate below somewhere near the
> 0x7800000 boundary (120 MiB).  0x7400000 often fails.  My logs tell me
> 0x7298000 once failed for me, but I can't easily repeat that result.
> 
> My wrong results have lots of zeroes in place of the data written e.g.
> 
> hexdump -C wh.bin | head -3
> 00000000  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa  |................|
> *
> 0375e000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> 
> Every time I've looked, the zeroes appear aligned to at least 2 KiB
> boundaries.
> 
> Explanations, anyone?
> 
> Pat LaVarre
> 
> /// udfwh
> 
> #!/bin/bash -x
> 
> rm dd.bin
> dd if=/dev/zero of=dd.bin bs=1M seek=1023 count=1
> ls -l dd.bin
> sudo losetup /dev/loop0 dd.bin
> sudo $1 2>&1 | head -1
> sudo $1 /dev/loop0
> sudo mount /dev/loop0 /mnt/loop0
> sudo chown `id -u`:`id -g` /mnt/loop0/.
> cd /mnt/loop0
> time wh $2 $3
> cd -
> sudo umount /mnt/loop0
> sudo losetup -d /dev/loop0
> 
> /// wh.c
> 
> #include <assert.h>
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> 
> int main(int argc, char * argv[]) // 0xFF600 0xC8
> {
> 	int width;
> 	int height;
> 	char * chars;
> 	char nonzero;
> 	FILE * fi;
> 	int i;
> 	int rc;
> 	char const * st;
> 
> 	--argc; ++argv;
> 	assert(argc == 2);
> 	rc = sscanf(argv[0], "0x%X", &width);
> 	assert(rc == 1);
> 	rc = sscanf(argv[1], "0x%X", &height);
> 	assert(rc == 1);
> 
> 	nonzero = '\xAA';
> 	chars = malloc(width);
> 	assert(chars != NULL);
> 	memset(&chars[0], nonzero, width);
> 
> 	fi = fopen("wh.bin", "wb");
> 	assert(fi != NULL);
> 	for (i = 0; i < height; ++i) {
> 		fprintf(stderr, "\r%d ", height - i - 1);
> 		rc = fwrite(chars, 1, width, fi);
> 		assert(rc == width);
> 	}
> 	rc = fclose(fi);
> 	assert(rc == 0);
> 	fprintf(stderr, "\n");
> 
> 	st = "hexdump -C wh.bin | head -3";
> 	fprintf(stderr, "%s\n", st);
> 	(void) system(st);
> 
> 	return 0;
> }
> 
> /// dmesg (boring, I think?)
> 
> > UDF-fs DEBUG fs/udf/lowlevel.c:65:udf_get_last_session: CDROMMULTISESSION not supported: rc=-22
> > UDF-fs DEBUG fs/udf/super.c:1471:udf_fill_super: Multi-session=0
> > UDF-fs DEBUG fs/udf/super.c:459:udf_vrs: Starting at sector 16 (2048 byte sectors)
> > UDF-fs DEBUG fs/udf/super.c:802:udf_load_pvoldesc: recording time 1065498482/249678, 2003/10/06 21:48 (1e98)
> > UDF-fs DEBUG fs/udf/super.c:813:udf_load_pvoldesc: volIdent[] = 'LinuxUDF'
> > UDF-fs DEBUG fs/udf/super.c:820:udf_load_pvoldesc: volSetIdent[] = '3f823772LinuxUDF'
> > UDF-fs DEBUG fs/udf/super.c:1012:udf_load_logicalvol: Partition (0:0) type 1 on volume 1
> > UDF-fs DEBUG fs/udf/super.c:1022:udf_load_logicalvol: FileSet found in LogicalVolDesc at block=32, partition=0
> > UDF-fs DEBUG fs/udf/super.c:850:udf_load_partdesc: Searching map: (0 == 0)
> > UDF-fs DEBUG fs/udf/super.c:891:udf_load_partdesc: unallocSpaceBitmap (part 0) @ 0
> > UDF-fs DEBUG fs/udf/super.c:932:udf_load_partdesc: Partition (0:0 type 1511) starts at physical 274, block length 523757
> > UDF-fs DEBUG fs/udf/super.c:1265:udf_load_partition: Using anchor in block 256
> > UDF-fs DEBUG fs/udf/super.c:1498:udf_fill_super: Lastblock=0
> > UDF-fs DEBUG fs/udf/super.c:774:udf_find_fileset: Fileset at block=32, partition=0
> > UDF-fs DEBUG fs/udf/super.c:836:udf_load_fileset: Rootdir at block=34, partition=0
> > UDF-fs INFO UDF 0.9.7 (2002/11/15) Mounting volume 'LinuxUDF', timestamp 2003/10/06 21:48 (1e98)

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: zeroes read back more often than appended
  2003-10-08  3:49 ` Ben Fennema
@ 2003-10-08 16:41   ` Pat LaVarre
  2003-10-08 16:47     ` editable udf metadata Pat LaVarre
                       ` (2 more replies)
  2003-10-08 16:46   ` soft trace of read/write of drivers/block/loop.c Pat LaVarre
                     ` (2 subsequent siblings)
  3 siblings, 3 replies; 40+ messages in thread
From: Pat LaVarre @ 2003-10-08 16:41 UTC (permalink / raw)
  To: bfennema; +Cc: linux-fsdevel, linux_udf

> From: Ben Fennema
>
> I'll see if I can figure out
> whats going on in 2.6.0-test6-smp.
>
> Somehow unrecorded block(s) are getting
> inserted in the data.

Intriguing, thank you.  Two questions immediately occur to me:

1) Do you mean to say you already have seen 2.6.0-test6-smp fail?

I ask because, if you say yes, then I should stop investing more time
into finding a second pc where I can reproduce my observations.

2) Do you mean to say you have seen the metadata of a failure, and you
saw that metadata say some of the data was allocated but not written?

I suspect yes because I know with a real device I saw all the write data
reach the disk.  In a soft trace of usb cdb's, I saw that reading the
file back skipped over part of the disk.

With a real device I tried a pattern more complex than the byte xAA
repeated.  My more complex pattern let me see that that the data
supposedly not written had been written to the disk.  Only the read back
skipped over that portion of the disk.

If that theory holds true, then we will fix only metadata, not data.

> > > ... 2.6.0-test6 ...
> > > CPU0: Intel(R) Pentium(R) 4 CPU 2.40GHz stepping 09
> > > CPU1: Intel(R) Pentium(R) 4 CPU 2.40GHz stepping 09
> > ... read more zeroes than appended ...
>
> > ... 2.4.22-xfs ...
> > ... 866.394 MHz ... CPU0: Intel Pentium III ...
> > correct '\xAA' read back, no troublesome zeroes, ...
>
> can't repeat ... 2.4 or 2.6.0-test6 non-smp ...
>
> whats going on in 2.6.0-test6-smp ...

I also saw correct '\xAA' read back, no troublesome zeroes, in Red Hat
2.6.0-test3 on a (fifth?) pc, in 20..30 s/test, with a loop on ext3:

318MB LOWMEM available.
Detected 697.733 MHz processor.
CPU0: Intel Celeron (Coppermine) stepping 06
..... CPU clock speed is 697.0620 MHz.
..... host bus clock speed is 66.0440 MHz.

Pat LaVarre



^ permalink raw reply	[flat|nested] 40+ messages in thread

* soft trace of read/write of drivers/block/loop.c
  2003-10-08  3:49 ` Ben Fennema
  2003-10-08 16:41   ` Pat LaVarre
@ 2003-10-08 16:46   ` Pat LaVarre
  2003-10-08 20:32   ` zeroes read back more often than appended Pat LaVarre
  2003-10-09 20:54   ` Pat LaVarre
  3 siblings, 0 replies; 40+ messages in thread
From: Pat LaVarre @ 2003-10-08 16:46 UTC (permalink / raw)
  To: linux-fsdevel, linux_udf

> > > with a loop on ext3 ...
> >
> > With a real device ...

I will confirm or deny that reading a fopen, repeat fwrite, fclose file
back sometimes reads zeroes by skipping part of the disk ...

... if/when I learn how to turn on a soft trace of loop read/write,
analogous to the soft trace of usb cdb's I already did find on the web.

Pat LaVarre



^ permalink raw reply	[flat|nested] 40+ messages in thread

* editable udf metadata
  2003-10-08 16:41   ` Pat LaVarre
@ 2003-10-08 16:47     ` Pat LaVarre
  2003-10-08 17:51       ` Pat LaVarre
  2003-10-08 17:02     ` zeroes read back more often than appended Pat LaVarre
  2003-10-08 17:21     ` zeroes read back more often than appended Pat LaVarre
  2 siblings, 1 reply; 40+ messages in thread
From: Pat LaVarre @ 2003-10-08 16:47 UTC (permalink / raw)
  To: linux-fsdevel, linux_udf

> > Do you mean to say you see the metadata ...

I know I haven't yet found a convenient printer of metadata for udf
files.

I mean like a tool to tell me the file name and byte size and last
modified time etc. appears in block xyz, the first bytes of data appears
at offset xyz in block xyz, the next block of data appears in block xyz,
and so on til eof.

I of course dream of an editor that would let me browse and edit the
blocks of the disk, having presented those blocks like gdb would present
the udf.ko struct's if udf.ko were a user app.

Pat LaVarre



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: zeroes read back more often than appended
  2003-10-08 16:41   ` Pat LaVarre
  2003-10-08 16:47     ` editable udf metadata Pat LaVarre
@ 2003-10-08 17:02     ` Pat LaVarre
  2003-10-08 17:06       ` toggling smp clears x86_mce_p4thermal of make xconfig Pat LaVarre
  2003-10-08 17:21     ` zeroes read back more often than appended Pat LaVarre
  2 siblings, 1 reply; 40+ messages in thread
From: Pat LaVarre @ 2003-10-08 17:02 UTC (permalink / raw)
  To: linux-fsdevel, linux_udf

> > ... 2.6.0-test6 ...
> > CPU0: Intel(R) Pentium(R) 4 CPU 2.40GHz stepping 09
> > CPU1: Intel(R) Pentium(R) 4 CPU 2.40GHz stepping 09
> > ... read more zeroes than appended ...
>
> whats going on in 2.6.0-test6-smp ...

I will confirm or deny that turning off my second cpu keeps zeroes from
reading back after fopen, repeat fwrite, fclose file ...

... if/when I learn how to turn off my second cpu.

Meanwhile, til I know better, I will blame `make defconfig` for having
turned on my second cpu.  Indeed immediately from that beginning, I see
`grep -i smp .config` followed by `make xconfig` suggests I try the
one-click "Processor type and features" "Symmetric multi-processing
support" = No patch:

-CONFIG_LOG_BUF_SHIFT=15
-CONFIG_NR_CPUS=8
-CONFIG_SMP=y
-CONFIG_X86_EXTRA_IRQS=y
-CONFIG_X86_FIND_SMP_CONFIG=y
-CONFIG_X86_HT=y
-CONFIG_X86_IO_APIC=y
-CONFIG_X86_LOCAL_APIC=y
-CONFIG_X86_MCE_P4THERMAL=y
-CONFIG_X86_MPPARSE=y
-CONFIG_X86_SMP=y
-CONFIG_X86_TRAMPOLINE=y

+# CONFIG_FTAPE is not set
+# CONFIG_SMP is not set
+# CONFIG_X86_UP_APIC is not set
+CONFIG_BROKEN_ON_SMP=y
+CONFIG_LOG_BUF_SHIFT=14

I will try this patch and report back.

Pat LaVarre




^ permalink raw reply	[flat|nested] 40+ messages in thread

* toggling smp clears x86_mce_p4thermal of make xconfig
  2003-10-08 17:02     ` zeroes read back more often than appended Pat LaVarre
@ 2003-10-08 17:06       ` Pat LaVarre
  0 siblings, 0 replies; 40+ messages in thread
From: Pat LaVarre @ 2003-10-08 17:06 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: linux_udf

> suggests I try the one-click
> "Processor type and features"
> "Symmetric multi-processing support" = No patch ...

I see this exercise raises a completely off-topic issue that perhaps you
can help me forward?

Toggling CONFIG_SMP back and forth via xconfig may produce a third kind
of .config, because 2.6.0-test6 `make xconfig` neglects to restore the
defconfig choice:

CONFIG_X86_MCE_P4THERMAL=y.

Pat LaVarre



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: zeroes read back more often than appended
  2003-10-08 16:41   ` Pat LaVarre
  2003-10-08 16:47     ` editable udf metadata Pat LaVarre
  2003-10-08 17:02     ` zeroes read back more often than appended Pat LaVarre
@ 2003-10-08 17:21     ` Pat LaVarre
  2 siblings, 0 replies; 40+ messages in thread
From: Pat LaVarre @ 2003-10-08 17:21 UTC (permalink / raw)
  To: linux-fsdevel, linux_udf

Kindly offline we now do have confirmation:

I am Not alone in reading back zeroes more often then I append them via
the udf of CONFIG_SMP=y.

Pat LaVarre



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: editable udf metadata
  2003-10-08 16:47     ` editable udf metadata Pat LaVarre
@ 2003-10-08 17:51       ` Pat LaVarre
  2003-10-08 18:09         ` big-endian udfct_1_0r2 Pat LaVarre
  2003-10-21 21:54         ` editable udf metadata Pat LaVarre
  0 siblings, 2 replies; 40+ messages in thread
From: Pat LaVarre @ 2003-10-08 17:51 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: linux_udf

[-- Attachment #1: Type: text/plain, Size: 1518 bytes --]

> > > Do you mean to say you see the metadata ...
> > 
> > I know I haven't yet found
> > a convenient printer of metadata for udf files.

Kindly offline I received the ...philips.com/udf/ link.

I wonder if that means people somewhere know how to extract just the
metadata of a single file from the udfct_1_0r2 tool.

The web trail I know to the udfct_1_0r2 tool is:

http://www.google.com/search?q=philips+udf+verifier
http://www.google.com/search?q=philips+udf+verifier&btnI=1
http://www.extra.research.philips.com/udf/
http://www.extra.research.philips.com/udf/download.html

I see udfct_1_0r2 describes itself as designed to work in Win 9X/ME.

I see compiling a wnaspi32.dll (e.g. via the wnaspi32.cpp for mingw gcc
attached) makes udfct_1_0r2 work in Win 2K/XP too.

I'm told Linux udfct_1_0r2 as yet works only on disk images ... such as
we create by default any time we substitute a loop device for a real
device.  But I see that wnaspi32.dll I compiled rests on top of gccscsi,
which by design talks thru Linux /dev/sg, not just Win/ Dos/ MacOF, so I
wonder if we are close to seeing udfct_1_0r2 run in linux.

I hear udfct_1_0r2 dumps only all the metadata of a disk, never the
metadata of a single file.

I of course welcome any correction/ elaboration you have to offer.

Pat LaVarre

P.S. Google at this moment no longer requires us to remember to say
Verifier rather than Test.  That is, to rediscover udfct_1_0r2 we now
can use the more concise link:

http://www.google.com/search?q=philips+udf+test



[-- Attachment #2: wnaspi32.cpp --]
[-- Type: text/x-c++, Size: 4590 bytes --]

/*
 * wnaspi32.cpp
 *
 * This source file for Win 2K/XP exists to make:
 *
 *	LoadLibrary("wnaspi32.dll");
 *
 * work enough like it did in Win 9X/ME to allow
 * trivial apps to function.
 *
 * Our "wnaspi32.h" appears unattributed, unlicensed,
 * and without copyright, precisely as it reached us
 * via Google.
 *
 * msdn.microsoft.com probably documents what our
 * history of pain has taught us of this interface.
 *
 * Bugs include:
 *
 *	Misbehaviour above 2 GiB per CDB.
 *
 *	Drive letter = ('C' + SRB_Target).
 *	No CloseHandle.
 *	CreateFile called til success, for each cdb sent to a drive letter.
 *
 *	Auto sense data echod out stderr, never passed back.
 *	No check for unused for the fields not copied, e.g. SRB_SenseLen.
 *
 *	x00 SC_HA_INQUIRY never becomes IOCTL_SCSI_GET_CAPABILITIES
 *	x02 SC_EXEC_SCSI_CMD never becomes IOCTL_SCSI_PASS_THROUGH_DIRECT
 *
 *	x80 SS_INVALID_CMD includes x08 SC_GETSET_TIMEOUTS
 *	x80 SS_INVALID_CMD includes x07 SC_RESCAN_SCSI_BUS
 *	x80 SS_INVALID_CMD includes x06 SC_GET_DISK_INFO
 *	x80 SS_INVALID_CMD includes x05 SC_SET_HA_PARMS
 *	x80 SS_INVALID_CMD includes x04 SC_RESET_DEV
 *	x80 SS_INVALID_CMD includes x03 SC_ABORT_SRB
 *	x80 SS_INVALID_CMD includes x01 SC_GET_DEV_TYPE
 */

#include "windows.h"
#include "ntddscsi.hpp"

#include <stddef.h>
#include <stdio.h>

#include "gccscsi.h"

#include "wnaspi32.hpp"

#define TARGET_COUNT (1 << 5) /* enough for 'C' .. 'Z' and one host */
int devs[TARGET_COUNT];

extern "C" {
extern DWORD GetASPI32SupportInfo(void);
extern DWORD SendASPI32Command(LPSRB v);
}

__declspec(dllexport)
extern DWORD GetASPI32SupportInfo(void)
{
	BYTE srbStatus = SS_NO_ADAPTERS; /* xE8 */
	BYTE haCount = ('Z' - 'A' + 1);
	srbStatus = SS_COMP; /* x01 */
	return ((srbStatus << 8) | haCount);
}

static BYTE ha_inquiry(SRB_HAInquiry * shai)
{
	WORD alignment_mask = (4 * Ki);
	BYTE may_count_data = 0x01;
	DWORD max_length = (64 * Ki);

	shai->HA_Count = 1;

	shai->HA_SCSI_ID = (TARGET_COUNT - 1);
	memset(&shai->HA_ManagerId[0], '\0', sizeof shai->HA_ManagerId);
	memset(&shai->HA_Identifier[0], '\0', sizeof shai->HA_Identifier);
	memset(&shai->HA_Unique[0], '\0', sizeof shai->HA_Unique);

	strncpy((char *) &shai->HA_ManagerId[0], "Wnaspi32.dll", sizeof shai->HA_ManagerId);
	strncpy((char *) &shai->HA_Identifier[0], "Slow SPT (not SPTD)", sizeof shai->HA_Identifier);

	* (WORD *) &shai->HA_Unique[0x00] = alignment_mask;
	* (BYTE *) &shai->HA_Unique[0x02] = may_count_data;
	* (BYTE *) &shai->HA_Unique[0x03] = TARGET_COUNT;
	* (DWORD *) &shai->HA_Unique[0x04] = max_length;

	return SS_COMP; /* x01 */
}

static BYTE exec_scsi_cmd(SRB_ExecSCSICmd * sesc)
{
	BYTE SRB_Target = sesc->SRB_Target;
	BYTE SRB_Lun = sesc->SRB_Lun;

	int letter = ('C' + SRB_Target);
	if (!(('A' <= letter) & (letter <= 'Z'))) return SS_NO_DEVICE; /* x82 */
	if (SRB_Lun != 0x00) return SS_NO_DEVICE; /* x82 */

	int dev = devs[SRB_Target];
	if (dev == 0) {
		char name[123] = "//./A:";
		sprintf(&name[0], "\\\\.\\%c:", letter);
		dev = sp_open(&name[0]);
	}
	if (dev == 0) return SS_NO_DEVICE; /* x82 */

	char * cdbChars = (char *) &sesc->CDBByte[0];
	int cdbLength = sesc->SRB_CDBLen;
	char * inChars = (char *) sesc->SRB_BufPointer;
	char * outChars = inChars;
	int maxLength = (int) sesc->SRB_BufLen;

	BYTE SRB_Flags = sesc->SRB_Flags;
	BYTE SRB_Flags_In_Out = (SRB_Flags & (SRB_DIR_OUT|SRB_DIR_IN)); /* x18 */
	if (maxLength == 0) {
		outChars = inChars = NULL;
	} else if (SRB_Flags_In_Out == SRB_DIR_IN) { /* x08 */
		outChars = NULL;
	} else if (SRB_Flags_In_Out == SRB_DIR_OUT) { /* x10 */
		inChars = NULL;
	} else {
		return SS_INVALID_SRB; /* xE0 */
	}

	int rc = sp_say(dev, cdbChars, cdbLength, outChars, inChars, maxLength);

	if (rc == 0) {
		sesc->SRB_HaStat = HASTAT_OK; /* x00 */
		sesc->SRB_TargStat = 0x00; /* good */
		return SS_COMP; /* x01 */
	}

	if (0 < rc) {
		sesc->SRB_HaStat = HASTAT_DO_DU; /* x12 */
		sesc->SRB_TargStat = 0x00; /* good */
		return SS_ERR; /* x04 */
	}

	sesc->SRB_HaStat = HASTAT_BUS_FREE; /* x13 */
	sesc->SRB_TargStat = 0x00; /* good */
	return SS_ERR; /* x04 */
}

__declspec(dllexport)
extern DWORD SendASPI32Command(LPSRB v)
{
	BYTE srbStatus = SS_INVALID_CMD; /* x80 */
	SRB_Abort * sa = (SRB_Abort *) v;
	if (sa->SRB_HaId != 0) {
		return SS_INVALID_HA;
	}
	switch (sa->SRB_Cmd) {
		case SC_HA_INQUIRY: /* x00 */
			srbStatus = ha_inquiry((SRB_HAInquiry *) v);
			break;
		case SC_EXEC_SCSI_CMD: /* x02 */
			srbStatus = exec_scsi_cmd((SRB_ExecSCSICmd *) v);
			break;
		default:
			break;
	}
	sa->SRB_Status = srbStatus;
	return srbStatus;
}

/* end of file */


^ permalink raw reply	[flat|nested] 40+ messages in thread

* big-endian udfct_1_0r2
  2003-10-08 17:51       ` Pat LaVarre
@ 2003-10-08 18:09         ` Pat LaVarre
  2003-10-08 18:30           ` Matthew Wilcox
  2003-10-21 21:54         ` editable udf metadata Pat LaVarre
  1 sibling, 1 reply; 40+ messages in thread
From: Pat LaVarre @ 2003-10-08 18:09 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: linux_udf

> http://www.extra.research.philips.com/udf/download.html
> For big endian platforms,
> ENDIAN_SWAP must be defined at compilation time.

Anyone here already working on fixing that feature?

I'm too new myself to know how socially correct C code in linux does
distinguish big-endian from little-endian.  Perhaps the first fragment
that leaps to my mind is:

static inline int lil() { int const i = 1; return *(char const *)&i; }

I'm too new to have tried that fragment in many gcc and linux.  I would
be disappointed, though not really surprised, to discover that the gcc
of wherever we see udf disks in fact doesn't support that kind of
constant as well as a #define constant.  Could be that an initialised
const union of char with int might work better.

Pat LaVarre



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: big-endian udfct_1_0r2
  2003-10-08 18:09         ` big-endian udfct_1_0r2 Pat LaVarre
@ 2003-10-08 18:30           ` Matthew Wilcox
       [not found]             ` <3F8472FE.9040403@lougher.demon.co.uk>
  2003-10-08 20:43             ` Phillip Lougher
  0 siblings, 2 replies; 40+ messages in thread
From: Matthew Wilcox @ 2003-10-08 18:30 UTC (permalink / raw)
  To: Pat LaVarre; +Cc: linux-fsdevel, linux_udf

On Wed, Oct 08, 2003 at 12:09:04PM -0600, Pat LaVarre wrote:
> > http://www.extra.research.philips.com/udf/download.html
> > For big endian platforms,
> > ENDIAN_SWAP must be defined at compilation time.
> 
> Anyone here already working on fixing that feature?
> 
> I'm too new myself to know how socially correct C code in linux does
> distinguish big-endian from little-endian.  Perhaps the first fragment

Take a look at include/linux/byteorder/generic.h, those are the functions
to use.  cpu_to_le{32,16} would probably be the favourite.

-- 
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: big-endian udfct_1_0r2
       [not found]             ` <3F8472FE.9040403@lougher.demon.co.uk>
@ 2003-10-08 19:49               ` Matthew Wilcox
  0 siblings, 0 replies; 40+ messages in thread
From: Matthew Wilcox @ 2003-10-08 19:49 UTC (permalink / raw)
  To: Phillip Lougher; +Cc: Matthew Wilcox, Pat LaVarre, linux-fsdevel, linux_udf

On Wed, Oct 08, 2003 at 09:26:38PM +0100, Phillip Lougher wrote:

I have no idea what you said.  Do you want to try resending in plain text?

-- 
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: zeroes read back more often than appended
  2003-10-08  3:49 ` Ben Fennema
  2003-10-08 16:41   ` Pat LaVarre
  2003-10-08 16:46   ` soft trace of read/write of drivers/block/loop.c Pat LaVarre
@ 2003-10-08 20:32   ` Pat LaVarre
  2003-10-09 20:54   ` Pat LaVarre
  3 siblings, 0 replies; 40+ messages in thread
From: Pat LaVarre @ 2003-10-08 20:32 UTC (permalink / raw)
  To: bfennema; +Cc: linux-fsdevel, linux_udf

[-- Attachment #1: Type: text/plain, Size: 2680 bytes --]

The -test6 non-smp here does fail.

I find that my fopen-fwrite-fclose-hexdump passes for smaller files,
fails for larger files, behaves inconsistently for file lengths in the
middle.

I consistently rediscover inconsistent behaviour when I binary search to
approach the boundary between tolerably small and troublesome large
bytes/file.

For example, here now, I see pass/fail = p p p ... if I try:

udfwh mkudffs 0x7800000 0x1

I see f f f ... if I try:

udfwh mkudffs 0x7900000 0x1

Once I saw f f p f p f p p f p f p p p p f ... when I tried:

udfwh mkudffs 0x78A0000 0x1

The boundary may move around.  Trying x7800000 again later - I think but
I cannot promise Not after a reboot - I instead saw: f p p f f.  And
with x78A0000 I saw: f f f f ...

Those f p mixes I call noise.

> From: Ben Fennema
>
> I can't repeat this on 2.4 or 2.6.0-test6 non-smp.
>
> I'll see if I can figure out whats going on in 2.6.0-test6-smp.
> 
> Somehow unrecorded block(s) are getting inserted in the data. 

You can see I began this email by claiming here I do repeat this in
-test6 non-smp.

I wonder if I'm so new that I could have misunderstood we mean by -test6
non-smp?  I've attached my new .config.  I'm using an smp motherboard,
but I thought CONFIG_SMP=y somehow by design ducks all the smp races?

The following tty log teaches me to disbelieve specifically my old guess
that we read x00 in place of appended xAA only when we run with
CONFIG_SMP=y.

Test cases that now fail include:

$ grep SMP .config
CONFIG_BROKEN_ON_SMP=y
# CONFIG_X86_BIGSMP is not set
# CONFIG_SMP is not set
$
$ dmesg | grep '^CPU[0-9]'
$ dmesg | grep '^CPU#'
CPU#0: Intel P4/Xeon Extended MCE MSRs (12) available
$
$ udfwh mkudffs 0xFFFF 0xC00
...
00000000  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa 
|................|
*
04528000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
|................|
...
$ udfwh mkudffs 0xFFFFFF 0xB
...
00000000  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa 
|................|
*
046b9000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
|................|
...
$ udfwh mkudffs 0xFFFFFFF 0x1
...
00000000  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa 
|................|
*
0571c000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
|................|
...
$ ...
$ udfwh mkudffs 0x78B0000 0x1
...
00000000  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa 
|................|
*
04eba000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 
|................|
...
$

> ...

I stole a moment to confirm the smaller and the larger files here are
all smaller than video clips commonly are.

I see:
x8000000 bytes/file = x80 MiB/file = 128 MiB/file.

Pat LaVarre


[-- Attachment #2: .config --]
[-- Type: text/plain, Size: 23238 bytes --]

#
# Automatically generated make config: don't edit
#
CONFIG_X86=y
CONFIG_MMU=y
CONFIG_UID16=y
CONFIG_GENERIC_ISA_DMA=y

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
CONFIG_CLEAN_COMPILE=y
CONFIG_STANDALONE=y
CONFIG_BROKEN_ON_SMP=y

#
# General setup
#
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
# CONFIG_BSD_PROCESS_ACCT is not set
CONFIG_SYSCTL=y
CONFIG_LOG_BUF_SHIFT=14
# CONFIG_IKCONFIG is not set
# CONFIG_EMBEDDED is not set
CONFIG_KALLSYMS=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
CONFIG_IOSCHED_DEADLINE=y

#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
CONFIG_OBSOLETE_MODPARM=y
# CONFIG_MODVERSIONS is not set
CONFIG_KMOD=y

#
# Processor type and features
#
CONFIG_X86_PC=y
# CONFIG_X86_VOYAGER is not set
# CONFIG_X86_NUMAQ is not set
# CONFIG_X86_SUMMIT is not set
# CONFIG_X86_BIGSMP is not set
# CONFIG_X86_VISWS is not set
# CONFIG_X86_GENERICARCH is not set
# CONFIG_X86_ES7000 is not set
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M686 is not set
# CONFIG_MPENTIUMII is not set
# CONFIG_MPENTIUMIII is not set
CONFIG_MPENTIUM4=y
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MK8 is not set
# CONFIG_MELAN is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MCYRIXIII is not set
# CONFIG_MVIAC3_2 is not set
# CONFIG_X86_GENERIC is not set
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_X86_L1_CACHE_SHIFT=7
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_INTEL_USERCOPY=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
# CONFIG_HPET_TIMER is not set
# CONFIG_HPET_EMULATE_RTC is not set
# CONFIG_SMP is not set
CONFIG_PREEMPT=y
# CONFIG_X86_UP_APIC is not set
CONFIG_X86_TSC=y
CONFIG_X86_MCE=y
CONFIG_X86_MCE_NONFATAL=y
# CONFIG_TOSHIBA is not set
# CONFIG_I8K is not set
# CONFIG_MICROCODE is not set
# CONFIG_X86_MSR is not set
# CONFIG_X86_CPUID is not set
# CONFIG_EDD is not set
CONFIG_NOHIGHMEM=y
# CONFIG_HIGHMEM4G is not set
# CONFIG_HIGHMEM64G is not set
# CONFIG_MATH_EMULATION is not set
CONFIG_MTRR=y
CONFIG_HAVE_DEC_LOCK=y

#
# Power management options (ACPI, APM)
#
CONFIG_PM=y
CONFIG_SOFTWARE_SUSPEND=y
# CONFIG_PM_DISK is not set

#
# ACPI (Advanced Configuration and Power Interface) Support
#
CONFIG_ACPI_HT=y
CONFIG_ACPI=y
CONFIG_ACPI_BOOT=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SLEEP_PROC_FS=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_TOSHIBA is not set
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_BUS=y
CONFIG_ACPI_INTERPRETER=y
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y

#
# APM (Advanced Power Management) BIOS Support
#
# CONFIG_APM is not set

#
# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not set

#
# Bus options (PCI, PCMCIA, EISA, MCA, ISA)
#
CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GODIRECT is not set
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_LEGACY_PROC=y
CONFIG_PCI_NAMES=y
CONFIG_ISA=y
# CONFIG_EISA is not set
# CONFIG_MCA is not set
# CONFIG_SCx200 is not set
CONFIG_HOTPLUG=y

#
# PCMCIA/CardBus support
#
# CONFIG_PCMCIA is not set
CONFIG_PCMCIA_PROBE=y

#
# PCI Hotplug Support
#
# CONFIG_HOTPLUG_PCI is not set

#
# Executable file formats
#
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_AOUT=y
CONFIG_BINFMT_MISC=y

#
# Generic Driver Options
#
# CONFIG_FW_LOADER is not set

#
# Memory Technology Devices (MTD)
#
# CONFIG_MTD is not set

#
# Parallel port support
#
CONFIG_PARPORT=y
CONFIG_PARPORT_PC=y
CONFIG_PARPORT_PC_CML1=y
# CONFIG_PARPORT_SERIAL is not set
# CONFIG_PARPORT_PC_FIFO is not set
# CONFIG_PARPORT_PC_SUPERIO is not set
# CONFIG_PARPORT_OTHER is not set
# CONFIG_PARPORT_1284 is not set

#
# Plug and Play support
#
CONFIG_PNP=y
# CONFIG_PNP_DEBUG is not set

#
# Protocols
#
# CONFIG_ISAPNP is not set
# CONFIG_PNPBIOS is not set

#
# Block devices
#
CONFIG_BLK_DEV_FD=y
# CONFIG_BLK_DEV_XD is not set
# CONFIG_PARIDE is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_UMEM is not set
CONFIG_BLK_DEV_LOOP=m
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
# CONFIG_BLK_DEV_NBD is not set
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_SIZE=4096
CONFIG_BLK_DEV_INITRD=y
CONFIG_LBD=y

#
# ATA/ATAPI/MFM/RLL support
#
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y

#
# Please see Documentation/ide.txt for help/info on IDE drives
#
# CONFIG_BLK_DEV_HD_IDE is not set
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
# CONFIG_IDEDISK_STROKE is not set
CONFIG_BLK_DEV_IDECD=m
# CONFIG_BLK_DEV_IDETAPE is not set
# CONFIG_BLK_DEV_IDEFLOPPY is not set
CONFIG_BLK_DEV_IDESCSI=m
# CONFIG_IDE_TASK_IOCTL is not set
CONFIG_IDE_TASKFILE_IO=y

#
# IDE chipset support/bugfixes
#
CONFIG_BLK_DEV_CMD640=y
# CONFIG_BLK_DEV_CMD640_ENHANCED is not set
# CONFIG_BLK_DEV_IDEPNP is not set
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
# CONFIG_BLK_DEV_OFFBOARD is not set
CONFIG_BLK_DEV_GENERIC=y
# CONFIG_BLK_DEV_OPTI621 is not set
CONFIG_BLK_DEV_RZ1000=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDE_TCQ is not set
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
# CONFIG_IDEDMA_PCI_WIP is not set
CONFIG_BLK_DEV_ADMA=y
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_BLK_DEV_ALI15X3 is not set
# CONFIG_BLK_DEV_AMD74XX is not set
# CONFIG_BLK_DEV_CMD64X is not set
# CONFIG_BLK_DEV_TRIFLEX is not set
# CONFIG_BLK_DEV_CY82C693 is not set
# CONFIG_BLK_DEV_CS5520 is not set
# CONFIG_BLK_DEV_CS5530 is not set
# CONFIG_BLK_DEV_HPT34X is not set
# CONFIG_BLK_DEV_HPT366 is not set
# CONFIG_BLK_DEV_SC1200 is not set
CONFIG_BLK_DEV_PIIX=y
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_PDC202XX_OLD is not set
# CONFIG_BLK_DEV_PDC202XX_NEW is not set
# CONFIG_BLK_DEV_SVWKS is not set
# CONFIG_BLK_DEV_SIIMAGE is not set
# CONFIG_BLK_DEV_SIS5513 is not set
# CONFIG_BLK_DEV_SLC90E66 is not set
# CONFIG_BLK_DEV_TRM290 is not set
# CONFIG_BLK_DEV_VIA82CXXX is not set
# CONFIG_IDE_CHIPSETS is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_DMA_NONPCI is not set
# CONFIG_BLK_DEV_HD is not set

#
# SCSI device support
#
CONFIG_SCSI=y
CONFIG_SCSI_PROC_FS=y

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=m
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
CONFIG_BLK_DEV_SR=m
# CONFIG_BLK_DEV_SR_VENDOR is not set
CONFIG_CHR_DEV_SG=m

#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
#
# CONFIG_SCSI_MULTI_LUN is not set
CONFIG_SCSI_REPORT_LUNS=y
# CONFIG_SCSI_CONSTANTS is not set
# CONFIG_SCSI_LOGGING is not set

#
# SCSI low-level drivers
#
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_7000FASST is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AHA152X is not set
# CONFIG_SCSI_AHA1542 is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC7XXX_OLD is not set
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_IN2000 is not set
# CONFIG_SCSI_MEGARAID is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_CPQFCTS is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_DTC3280 is not set
# CONFIG_SCSI_EATA is not set
# CONFIG_SCSI_EATA_PIO is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
# CONFIG_SCSI_GDTH is not set
# CONFIG_SCSI_GENERIC_NCR5380 is not set
# CONFIG_SCSI_GENERIC_NCR5380_MMIO is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_PPA is not set
# CONFIG_SCSI_IMM is not set
# CONFIG_SCSI_NCR53C406A is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_PAS16 is not set
# CONFIG_SCSI_PSI240I is not set
# CONFIG_SCSI_QLOGIC_FAS is not set
# CONFIG_SCSI_QLOGIC_ISP is not set
# CONFIG_SCSI_QLOGIC_FC is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
# CONFIG_SCSI_SYM53C416 is not set
# CONFIG_SCSI_DC395x is not set
# CONFIG_SCSI_T128 is not set
# CONFIG_SCSI_U14_34F is not set
# CONFIG_SCSI_ULTRASTOR is not set
# CONFIG_SCSI_NSP32 is not set
# CONFIG_SCSI_DEBUG is not set

#
# Old CD-ROM drivers (not SCSI, not IDE)
#
# CONFIG_CD_NO_IDESCSI is not set

#
# Multi-device support (RAID and LVM)
#
# CONFIG_MD is not set

#
# Fusion MPT device support
#
# CONFIG_FUSION is not set

#
# IEEE 1394 (FireWire) support (EXPERIMENTAL)
#
CONFIG_IEEE1394=y

#
# Subsystem Options
#
# CONFIG_IEEE1394_VERBOSEDEBUG is not set
# CONFIG_IEEE1394_OUI_DB is not set

#
# Device Drivers
#

#
# Texas Instruments PCILynx requires I2C bit-banging
#
CONFIG_IEEE1394_OHCI1394=y

#
# Protocol Drivers
#
# CONFIG_IEEE1394_VIDEO1394 is not set
# CONFIG_IEEE1394_SBP2 is not set
# CONFIG_IEEE1394_ETH1394 is not set
# CONFIG_IEEE1394_DV1394 is not set
# CONFIG_IEEE1394_RAWIO is not set
# CONFIG_IEEE1394_CMP is not set

#
# I2O device support
#
# CONFIG_I2O is not set

#
# Networking support
#
CONFIG_NET=y

#
# Networking options
#
CONFIG_PACKET=y
# CONFIG_PACKET_MMAP is not set
# CONFIG_NETLINK_DEV is not set
CONFIG_UNIX=y
# CONFIG_NET_KEY is not set
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
# CONFIG_IP_ADVANCED_ROUTER is not set
# CONFIG_IP_PNP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
# CONFIG_IP_MROUTE is not set
# CONFIG_ARPD is not set
# CONFIG_INET_ECN is not set
# CONFIG_SYN_COOKIES is not set
# CONFIG_INET_AH is not set
# CONFIG_INET_ESP is not set
# CONFIG_INET_IPCOMP is not set
# CONFIG_IPV6 is not set
# CONFIG_DECNET is not set
# CONFIG_BRIDGE is not set
# CONFIG_NETFILTER is not set

#
# SCTP Configuration (EXPERIMENTAL)
#
CONFIG_IPV6_SCTP__=y
# CONFIG_IP_SCTP is not set
# CONFIG_ATM is not set
# CONFIG_VLAN_8021Q is not set
# CONFIG_LLC2 is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_NET_DIVERT is not set
# CONFIG_ECONET is not set
# CONFIG_WAN_ROUTER is not set
# CONFIG_NET_FASTROUTE is not set
# CONFIG_NET_HW_FLOWCONTROL is not set

#
# QoS and/or fair queueing
#
# CONFIG_NET_SCHED is not set

#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
CONFIG_NETDEVICES=y

#
# ARCnet devices
#
# CONFIG_ARCNET is not set
CONFIG_DUMMY=m
# CONFIG_BONDING is not set
# CONFIG_EQUALIZER is not set
# CONFIG_TUN is not set
# CONFIG_NET_SB1000 is not set

#
# Ethernet (10 or 100Mbit)
#
CONFIG_NET_ETHERNET=y
CONFIG_MII=y
# CONFIG_HAPPYMEAL is not set
# CONFIG_SUNGEM is not set
# CONFIG_NET_VENDOR_3COM is not set
# CONFIG_LANCE is not set
# CONFIG_NET_VENDOR_SMC is not set
# CONFIG_NET_VENDOR_RACAL is not set

#
# Tulip family network device support
#
# CONFIG_NET_TULIP is not set
# CONFIG_AT1700 is not set
# CONFIG_DEPCA is not set
# CONFIG_HP100 is not set
# CONFIG_NET_ISA is not set
CONFIG_NET_PCI=y
# CONFIG_PCNET32 is not set
# CONFIG_AMD8111_ETH is not set
# CONFIG_ADAPTEC_STARFIRE is not set
# CONFIG_AC3200 is not set
# CONFIG_APRICOT is not set
# CONFIG_B44 is not set
# CONFIG_CS89x0 is not set
# CONFIG_DGRS is not set
# CONFIG_EEPRO100 is not set
CONFIG_E100=y
# CONFIG_FEALNX is not set
# CONFIG_NATSEMI is not set
# CONFIG_NE2K_PCI is not set
# CONFIG_8139CP is not set
CONFIG_8139TOO=y
# CONFIG_8139TOO_PIO is not set
# CONFIG_8139TOO_TUNE_TWISTER is not set
# CONFIG_8139TOO_8129 is not set
# CONFIG_8139_OLD_RX_RESET is not set
# CONFIG_SIS900 is not set
# CONFIG_EPIC100 is not set
# CONFIG_SUNDANCE is not set
# CONFIG_TLAN is not set
# CONFIG_VIA_RHINE is not set
# CONFIG_NET_POCKET is not set

#
# Ethernet (1000 Mbit)
#
# CONFIG_ACENIC is not set
# CONFIG_DL2K is not set
# CONFIG_E1000 is not set
# CONFIG_NS83820 is not set
# CONFIG_HAMACHI is not set
# CONFIG_YELLOWFIN is not set
# CONFIG_R8169 is not set
# CONFIG_SIS190 is not set
# CONFIG_SK98LIN is not set
# CONFIG_TIGON3 is not set

#
# Ethernet (10000 Mbit)
#
# CONFIG_IXGB is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
# CONFIG_PLIP is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not set

#
# Wireless LAN (non-hamradio)
#
# CONFIG_NET_RADIO is not set

#
# Token Ring devices
#
# CONFIG_TR is not set
# CONFIG_NET_FC is not set
# CONFIG_RCPCI is not set
# CONFIG_SHAPER is not set

#
# Wan interfaces
#
# CONFIG_WAN is not set

#
# Amateur Radio support
#
# CONFIG_HAMRADIO is not set

#
# IrDA (infrared) support
#
# CONFIG_IRDA is not set

#
# Bluetooth support
#
# CONFIG_BT is not set

#
# ISDN subsystem
#
# CONFIG_ISDN_BOOL is not set

#
# Telephony Support
#
# CONFIG_PHONE is not set

#
# Input device support
#
CONFIG_INPUT=y

#
# Userland interfaces
#
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
# CONFIG_INPUT_JOYDEV is not set
# CONFIG_INPUT_TSDEV is not set
# CONFIG_INPUT_EVDEV is not set
# CONFIG_INPUT_EVBUG is not set

#
# Input I/O drivers
#
# CONFIG_GAMEPORT is not set
CONFIG_SOUND_GAMEPORT=y
CONFIG_SERIO=y
CONFIG_SERIO_I8042=y
# CONFIG_SERIO_SERPORT is not set
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_PARKBD is not set
# CONFIG_SERIO_PCIPS2 is not set

#
# Input Device Drivers
#
CONFIG_INPUT_KEYBOARD=y
CONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_KEYBOARD_NEWTON is not set
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=y
# CONFIG_MOUSE_PS2_SYNAPTICS is not set
# CONFIG_MOUSE_SERIAL is not set
# CONFIG_MOUSE_INPORT is not set
# CONFIG_MOUSE_LOGIBM is not set
# CONFIG_MOUSE_PC110PAD is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not set

#
# Character devices
#
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y
# CONFIG_SERIAL_NONSTANDARD is not set

#
# Serial drivers
#
CONFIG_SERIAL_8250=y
# CONFIG_SERIAL_8250_CONSOLE is not set
# CONFIG_SERIAL_8250_ACPI is not set
# CONFIG_SERIAL_8250_EXTENDED is not set

#
# Non-8250 serial port support
#
CONFIG_SERIAL_CORE=y
CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=256
CONFIG_PRINTER=y
# CONFIG_LP_CONSOLE is not set
# CONFIG_PPDEV is not set
# CONFIG_TIPAR is not set

#
# I2C support
#
# CONFIG_I2C is not set

#
# I2C Algorithms
#

#
# I2C Hardware Bus support
#

#
# I2C Hardware Sensors Chip support
#
# CONFIG_I2C_SENSOR is not set

#
# Mice
#
# CONFIG_BUSMOUSE is not set
# CONFIG_QIC02_TAPE is not set

#
# IPMI
#
# CONFIG_IPMI_HANDLER is not set

#
# Watchdog Cards
#
# CONFIG_WATCHDOG is not set
# CONFIG_HW_RANDOM is not set
# CONFIG_NVRAM is not set
# CONFIG_RTC is not set
# CONFIG_GEN_RTC is not set
# CONFIG_DTLK is not set
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not set
# CONFIG_SONYPI is not set

#
# Ftape, the floppy tape device driver
#
# CONFIG_FTAPE is not set
CONFIG_AGP=y
# CONFIG_AGP_ALI is not set
# CONFIG_AGP_ATI is not set
# CONFIG_AGP_AMD is not set
# CONFIG_AGP_AMD64 is not set
CONFIG_AGP_INTEL=y
# CONFIG_AGP_NVIDIA is not set
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_SWORKS is not set
# CONFIG_AGP_VIA is not set
CONFIG_DRM=y
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_GAMMA is not set
# CONFIG_DRM_R128 is not set
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_I810 is not set
CONFIG_DRM_I830=y
# CONFIG_DRM_MGA is not set
# CONFIG_DRM_SIS is not set
# CONFIG_MWAVE is not set
# CONFIG_RAW_DRIVER is not set
# CONFIG_HANGCHECK_TIMER is not set

#
# Multimedia devices
#
# CONFIG_VIDEO_DEV is not set

#
# Digital Video Broadcasting Devices
#
# CONFIG_DVB is not set

#
# File systems
#
CONFIG_EXT2_FS=y
# CONFIG_EXT2_FS_XATTR is not set
CONFIG_EXT3_FS=y
CONFIG_EXT3_FS_XATTR=y
# CONFIG_EXT3_FS_POSIX_ACL is not set
# CONFIG_EXT3_FS_SECURITY is not set
CONFIG_JBD=y
# CONFIG_JBD_DEBUG is not set
CONFIG_FS_MBCACHE=y
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
# CONFIG_XFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_QUOTA is not set
# CONFIG_AUTOFS_FS is not set
CONFIG_AUTOFS4_FS=y

#
# CD-ROM/DVD Filesystems
#
CONFIG_ISO9660_FS=y
CONFIG_JOLIET=y
# CONFIG_ZISOFS is not set
CONFIG_UDF_FS=m

#
# DOS/FAT/NT Filesystems
#
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y
# CONFIG_NTFS_FS is not set

#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
# CONFIG_DEVFS_FS is not set
CONFIG_DEVPTS_FS=y
# CONFIG_DEVPTS_FS_XATTR is not set
CONFIG_TMPFS=y
# CONFIG_HUGETLBFS is not set
# CONFIG_HUGETLB_PAGE is not set
CONFIG_RAMFS=y

#
# Miscellaneous filesystems
#
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set
# CONFIG_CRAMFS is not set
# CONFIG_VXFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set

#
# Network File Systems
#
CONFIG_NFS_FS=y
# CONFIG_NFS_V3 is not set
# CONFIG_NFS_V4 is not set
CONFIG_NFSD=y
# CONFIG_NFSD_V3 is not set
# CONFIG_NFSD_TCP is not set
CONFIG_LOCKD=y
CONFIG_EXPORTFS=y
CONFIG_SUNRPC=y
# CONFIG_SUNRPC_GSS is not set
# CONFIG_SMB_FS is not set
# CONFIG_CIFS is not set
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not set
# CONFIG_INTERMEZZO_FS is not set
# CONFIG_AFS_FS is not set

#
# Partition Types
#
# CONFIG_PARTITION_ADVANCED is not set
CONFIG_MSDOS_PARTITION=y
CONFIG_NLS=y

#
# Native Language Support
#
CONFIG_NLS_DEFAULT="iso8859-1"
CONFIG_NLS_CODEPAGE_437=y
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
# CONFIG_NLS_CODEPAGE_850 is not set
# CONFIG_NLS_CODEPAGE_852 is not set
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set
# CONFIG_NLS_CODEPAGE_861 is not set
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set
# CONFIG_NLS_CODEPAGE_865 is not set
# CONFIG_NLS_CODEPAGE_866 is not set
# CONFIG_NLS_CODEPAGE_869 is not set
# CONFIG_NLS_CODEPAGE_936 is not set
# CONFIG_NLS_CODEPAGE_950 is not set
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
# CONFIG_NLS_ISO8859_8 is not set
# CONFIG_NLS_CODEPAGE_1250 is not set
# CONFIG_NLS_CODEPAGE_1251 is not set
CONFIG_NLS_ISO8859_1=y
# CONFIG_NLS_ISO8859_2 is not set
# CONFIG_NLS_ISO8859_3 is not set
# CONFIG_NLS_ISO8859_4 is not set
# CONFIG_NLS_ISO8859_5 is not set
# CONFIG_NLS_ISO8859_6 is not set
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not set
# CONFIG_NLS_ISO8859_14 is not set
# CONFIG_NLS_ISO8859_15 is not set
# CONFIG_NLS_KOI8_R is not set
# CONFIG_NLS_KOI8_U is not set
# CONFIG_NLS_UTF8 is not set

#
# Graphics support
#
# CONFIG_FB is not set
# CONFIG_VIDEO_SELECT is not set

#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
# CONFIG_MDA_CONSOLE is not set
CONFIG_DUMMY_CONSOLE=y

#
# Sound
#
CONFIG_SOUND=y

#
# Advanced Linux Sound Architecture
#
CONFIG_SND=y
CONFIG_SND_SEQUENCER=y
# CONFIG_SND_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_SEQUENCER_OSS=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set

#
# Generic devices
#
# CONFIG_SND_DUMMY is not set
# CONFIG_SND_VIRMIDI is not set
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_MPU401 is not set

#
# ISA devices
#
# CONFIG_SND_AD1848 is not set
# CONFIG_SND_CS4231 is not set
# CONFIG_SND_CS4232 is not set
# CONFIG_SND_CS4236 is not set
# CONFIG_SND_ES1688 is not set
# CONFIG_SND_ES18XX is not set
# CONFIG_SND_GUSCLASSIC is not set
# CONFIG_SND_GUSEXTREME is not set
# CONFIG_SND_GUSMAX is not set
# CONFIG_SND_INTERWAVE is not set
# CONFIG_SND_INTERWAVE_STB is not set
# CONFIG_SND_OPTI92X_AD1848 is not set
# CONFIG_SND_OPTI92X_CS4231 is not set
# CONFIG_SND_OPTI93X is not set
# CONFIG_SND_SB8 is not set
# CONFIG_SND_SB16 is not set
# CONFIG_SND_SBAWE is not set
# CONFIG_SND_WAVEFRONT is not set
# CONFIG_SND_CMI8330 is not set
# CONFIG_SND_OPL3SA2 is not set
# CONFIG_SND_SGALAXY is not set
# CONFIG_SND_SSCAPE is not set

#
# PCI devices
#
# CONFIG_SND_ALI5451 is not set
# CONFIG_SND_AZT3328 is not set
# CONFIG_SND_EMU10K1 is not set
# CONFIG_SND_KORG1212 is not set
# CONFIG_SND_NM256 is not set
# CONFIG_SND_RME32 is not set
# CONFIG_SND_RME96 is not set
# CONFIG_SND_RME9652 is not set
# CONFIG_SND_HDSP is not set
# CONFIG_SND_YMFPCI is not set
# CONFIG_SND_ALS4000 is not set
# CONFIG_SND_CMIPCI is not set
# CONFIG_SND_ES1968 is not set
# CONFIG_SND_MAESTRO3 is not set
# CONFIG_SND_FM801 is not set
# CONFIG_SND_ICE1712 is not set
# CONFIG_SND_ICE1724 is not set
CONFIG_SND_INTEL8X0=y
# CONFIG_SND_VIA82XX is not set
# CONFIG_SND_VX222 is not set

#
# ALSA USB devices
#
# CONFIG_SND_USB_AUDIO is not set

#
# Open Sound System
#
# CONFIG_SOUND_PRIME is not set

#
# USB support
#
CONFIG_USB=y
# CONFIG_USB_DEBUG is not set

#
# Miscellaneous USB options
#
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_DYNAMIC_MINORS is not set

#
# USB Host Controller Drivers
#
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_OHCI_HCD=m
CONFIG_USB_UHCI_HCD=m

#
# USB Device Class drivers
#
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_BLUETOOTH_TTY is not set
# CONFIG_USB_MIDI is not set
# CONFIG_USB_ACM is not set
CONFIG_USB_PRINTER=y
CONFIG_USB_STORAGE=m
# CONFIG_USB_STORAGE_DEBUG is not set
# CONFIG_USB_STORAGE_DATAFAB is not set
# CONFIG_USB_STORAGE_FREECOM is not set
# CONFIG_USB_STORAGE_ISD200 is not set
# CONFIG_USB_STORAGE_DPCM is not set
# CONFIG_USB_STORAGE_HP8200e is not set
# CONFIG_USB_STORAGE_SDDR09 is not set
# CONFIG_USB_STORAGE_SDDR55 is not set
# CONFIG_USB_STORAGE_JUMPSHOT is not set

#
# USB Human Interface Devices (HID)
#
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
# CONFIG_HID_FF is not set
# CONFIG_USB_HIDDEV is not set
# CONFIG_USB_AIPTEK is not set
# CONFIG_USB_WACOM is not set
# CONFIG_USB_KBTAB is not set
# CONFIG_USB_POWERMATE is not set
# CONFIG_USB_XPAD is not set

#
# USB Imaging devices
#
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_SCANNER is not set
# CONFIG_USB_MICROTEK is not set
# CONFIG_USB_HPUSBSCSI is not set

#
# USB Multimedia devices
#
# CONFIG_USB_DABUSB is not set

#
# Video4Linux support is needed for USB Multimedia device support
#

#
# USB Network adaptors
#
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_USBNET is not set

#
# USB port drivers
#
# CONFIG_USB_USS720 is not set

#
# USB Serial Converter support
#
# CONFIG_USB_SERIAL is not set

#
# USB Miscellaneous drivers
#
# CONFIG_USB_TIGL is not set
# CONFIG_USB_AUERSWALD is not set
# CONFIG_USB_RIO500 is not set
# CONFIG_USB_BRLVGER is not set
# CONFIG_USB_LCD is not set
# CONFIG_USB_TEST is not set
# CONFIG_USB_GADGET is not set

#
# Profiling support
#
# CONFIG_PROFILING is not set

#
# Kernel hacking
#
# CONFIG_DEBUG_KERNEL is not set
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
CONFIG_FRAME_POINTER=y

#
# Security options
#
# CONFIG_SECURITY is not set

#
# Cryptographic options
#
# CONFIG_CRYPTO is not set

#
# Library routines
#
CONFIG_CRC32=y
CONFIG_X86_BIOS_REBOOT=y

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: big-endian udfct_1_0r2
  2003-10-08 18:30           ` Matthew Wilcox
       [not found]             ` <3F8472FE.9040403@lougher.demon.co.uk>
@ 2003-10-08 20:43             ` Phillip Lougher
  1 sibling, 0 replies; 40+ messages in thread
From: Phillip Lougher @ 2003-10-08 20:43 UTC (permalink / raw)
  To: linux-fsdevel

Matthew Wilcox wrote:
> On Wed, Oct 08, 2003 at 12:09:04PM -0600, Pat LaVarre wrote:
> 
>>>http://www.extra.research.philips.com/udf/download.html
>>>For big endian platforms,
>>>ENDIAN_SWAP must be defined at compilation time.
>>
>>Anyone here already working on fixing that feature?
>>
>>I'm too new myself to know how socially correct C code in linux does
>>distinguish big-endian from little-endian.  Perhaps the first fragment
> 
> 
> Take a look at include/linux/byteorder/generic.h, those are the functions
> to use.  cpu_to_le{32,16} would probably be the favourite.
> 

If you want to know what endianess architecture you're running on, 
#include <asm/byteorder.h>

This defines the symbol __BIG_ENDIAN or __LITTLE_ENDIAN as appropriate 
(by pulling in either include/linux/byteorder/big_endian.h or 
little_endian.h).

Phillip



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: zeroes read back more often than appended
  2003-10-08  3:49 ` Ben Fennema
                     ` (2 preceding siblings ...)
  2003-10-08 20:32   ` zeroes read back more often than appended Pat LaVarre
@ 2003-10-09 20:54   ` Pat LaVarre
  2003-10-10  0:52     ` Pat LaVarre
  3 siblings, 1 reply; 40+ messages in thread
From: Pat LaVarre @ 2003-10-09 20:54 UTC (permalink / raw)
  To: linux-fsdevel, linux_udf

This email you will see in both linux-fsdevel@vger.kernel.org and 
linux_udf@hpesjro.fc.hp.com

Here forward you will see replies from me only in
linux-fsdevel@vger.kernel.org, per my interpretation of a polite request
I kindly received offline.

> Please ... I want volunteers to survey how widespread
> this particular udf.ko miscompare is.
> 
> Subject: Re: zeroes read back more often than appended
> http://marc.theaimsgroup.com/?t=106555348100001
> http://marc.theaimsgroup.com/?l=linux-fsdevel&m=106555346706222

>From this quote you can see also offline I've enlisted friends to help
survey how widespread this phenomenon is.  The first friend so enlisted
did see this same issue, in linux-2.6.0-test7 rather than -test6.

Before tomorrow ends, from that friend I think we can hope to see such
distinguishing details as:

uname -msr
dmesg | egrep 'MHz|bus|LOWM|^CPU#'

Pat LaVarre



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: zeroes read back more often than appended
  2003-10-09 20:54   ` Pat LaVarre
@ 2003-10-10  0:52     ` Pat LaVarre
  2003-10-10 16:39       ` Pat LaVarre
  0 siblings, 1 reply; 40+ messages in thread
From: Pat LaVarre @ 2003-10-10  0:52 UTC (permalink / raw)
  To: linux-fsdevel

Ouch I see I forgot to mention, when I do see zeroes read back more
often then appended, ...

Often I also see dmesg like those discussed in the recently dead
linux_udf thread "balloc free bit already set and byte minus one".

For example we see:

UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 3791 already set
UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte=ffffff80
...
UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 3796 already set
UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte=1f

The complete tty log follows.

I see trouble in single writes without these messages, so I guess these
messages are related but not the only cause.  Alternatively, these
messages may be loudly discussing normal activity, rather than
complaining of real trouble, I'm too new to know.

Pat LaVarre

$
$ uname -msr
Linux 2.6.0-test7 i686
$
$ dmesg >1
$
$ udfwh mkudffs 0xFFFF 0xC00
+ rm dd.bin
+ dd if=/dev/zero of=dd.bin bs=1M seek=1023 count=1
1+0 records in
1+0 records out
+ ls -l dd.bin
-rw-rw-r--    1 pat      pat      1073741824 Oct  9 18:42 dd.bin
+ sudo losetup /dev/loop0 dd.bin
+ sudo mkudffs
+ head -1
mkudffs 1.0.0b2 for UDF FS 1.0.0-cvs, 2002/02/09
+ sudo mkudffs /dev/loop0
start=0, blocks=16, type=RESERVED
start=16, blocks=3, type=VRS
start=19, blocks=237, type=USPACE
start=256, blocks=1, type=ANCHOR
start=257, blocks=16, type=PVDS
start=273, blocks=1, type=LVID
start=274, blocks=523757, type=PSPACE
start=524031, blocks=1, type=ANCHOR
start=524032, blocks=239, type=USPACE
start=524271, blocks=16, type=RVDS
start=524287, blocks=1, type=ANCHOR
+ sudo mount /dev/loop0 /mnt/loop0
++ id -u
++ id -g
+ sudo chown 500:500 /mnt/loop0/.
+ cd /mnt/loop0
+ wh 0xFFFF 0xC00
0
hexdump -C wh.bin | head -3
00000000  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa  |................|
*
04372000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
 
real    0m10.480s
user    0m2.787s
sys     0m1.894s
+ cd -
+ sudo umount /mnt/loop0
+ sudo losetup -d /dev/loop0
$
$ dmesg >2
$
$ diff 1 2 | grep '^>'
> he hash table of 4096 buckets, 32Kbytes
> UDF-fs DEBUG fs/udf/lowlevel.c:65:udf_get_last_session: CDROMMULTISESSION not supported: rc=-22
> UDF-fs DEBUG fs/udf/super.c:1544:udf_fill_super: Multi-session=0
> UDF-fs DEBUG fs/udf/super.c:532:udf_vrs: Starting at sector 16 (2048 byte sectors)
> UDF-fs DEBUG fs/udf/super.c:875:udf_load_pvoldesc: recording time 1065746572/73570, 2003/10/09 18:42 (1e98)
> UDF-fs DEBUG fs/udf/super.c:886:udf_load_pvoldesc: volIdent[] = 'LinuxUDF'
> UDF-fs DEBUG fs/udf/super.c:893:udf_load_pvoldesc: volSetIdent[] = '3f86008cLinuxUDF'
> UDF-fs DEBUG fs/udf/super.c:1085:udf_load_logicalvol: Partition (0:0) type 1 on volume 1
> UDF-fs DEBUG fs/udf/super.c:1095:udf_load_logicalvol: FileSet found in LogicalVolDesc at block=32, partition=0
> UDF-fs DEBUG fs/udf/super.c:923:udf_load_partdesc: Searching map: (0 == 0)
> UDF-fs DEBUG fs/udf/super.c:964:udf_load_partdesc: unallocSpaceBitmap (part 0) @ 0
> UDF-fs DEBUG fs/udf/super.c:1005:udf_load_partdesc: Partition (0:0 type 1511) starts at physical 274, block length 523757
> UDF-fs DEBUG fs/udf/super.c:1338:udf_load_partition: Using anchor in block 256
> UDF-fs DEBUG fs/udf/super.c:1571:udf_fill_super: Lastblock=0
> UDF-fs DEBUG fs/udf/super.c:847:udf_find_fileset: Fileset at block=32, partition=0
> UDF-fs DEBUG fs/udf/super.c:909:udf_load_fileset: Rootdir at block=34, partition=0
> UDF-fs INFO UDF 0.9.7 (2002/11/15) Mounting volume 'LinuxUDF', timestamp 2003/10/09 18:42 (1e98)
> UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 3791 already set
> UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte=ffffff80
> UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 3791 already set
> UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte=ffffff80
> UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 3792 already set
> UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte= 1
> UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 3791 already set
> UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte=ffffff80
> UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 3792 already set
> UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte= 3
> UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 3793 already set
> UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte= 3
> UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 3791 already set
> UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte=ffffff80
> UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 3792 already set
> UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte= 7
> UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 3793 already set
> UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte= 7
> UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 3794 already set
> UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte= 7
> UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 3791 already set
> UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte=ffffff80
> UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 3792 already set
> UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte= f
> UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 3793 already set
> UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte= f
> UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 3794 already set
> UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte= f
> UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 3795 already set
> UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte= f
> UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 3791 already set
> UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte=ffffff80
> UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 3792 already set
> UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte=1f
> UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 3793 already set
> UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte=1f
> UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 3794 already set
> UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte=1f
> UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 3795 already set
> UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte=1f
> UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 3796 already set
> UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte=1f
$



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: zeroes read back more often than appended
  2003-10-10  0:52     ` Pat LaVarre
@ 2003-10-10 16:39       ` Pat LaVarre
  2003-10-10 18:15         ` Pat LaVarre
  0 siblings, 1 reply; 40+ messages in thread
From: Pat LaVarre @ 2003-10-10 16:39 UTC (permalink / raw)
  To: linux-fsdevel

Offline we spoke of trying again without letting loop.ko allot any of
the blocks of backing store i.e. patching the test script to write all
blocks:

- dd if=/dev/zero of=dd.bin bs=1M seek=1023 count=1
+ dd if=/dev/zero of=dd.bin bs=1M seek=0 count=1024

Definitely I very much appreciate the suggestion ...

But I regret to report that here I see that patch only slows down the
test, it does not change the results.

Still for me the quick reliably troublesome test cases are such as:

time udfwh mkudffs 0xFFFF 0xC00
time udfwh mkudffs 0xFFFFFF 0xC

Given that I'm now actually waiting to write a disk image full of
zeroes, I've shrunk the disk to 256 MiB from 1024 GiB. Conveniently I
find I see trouble.  With slightly fewer writes, whether I see trouble
and whether dmesg complains varies.

Indeed, at least twice now, I've seen my kernel crash, though possibly
only back when I was letting loop.ko allot blocks of backing store.

Pat LaVarre

-- example tty log

$
$ # more zeroes read than appended, but no dmesg
$ #
$ time udfwh mkudffs 0xFFFFFF 0xA
Linux 2.6.0-test7 i686
/mnt/hda11
dd if=/dev/zero of=dd.bin bs=1M seek=0 count=256 2>/dev/null
-rw-rw-r--    1 pat      pat      268435456 Oct 10 10:27 dd.bin
mkudffs 1.0.0b2 for UDF FS 1.0.0-cvs, 2002/02/09
0
hexdump -C wh.bin | head -3
00000000  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa  |................|
*
0098b000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
 
real    0m15.199s
user    0m3.307s
sys     0m2.956s
$
$ # no trouble, read back only the appended bytes, no zeroes
$ #
$ time udfwh mkudffs 0xFFFFFF 0xA
Linux 2.6.0-test7 i686
/mnt/hda11
dd if=/dev/zero of=dd.bin bs=1M seek=0 count=256 2>/dev/null
-rw-rw-r--    1 pat      pat      268435456 Oct 10 10:27 dd.bin
mkudffs 1.0.0b2 for UDF FS 1.0.0-cvs, 2002/02/09
0
hexdump -C wh.bin | head -3
00000000  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa  |................|
*
09fffff0  aa aa aa aa aa aa                                 |......|
 
real    0m14.377s
user    0m3.275s
sys     0m2.684s
$
$ ...
$ # troublesome zeroes together with menacing dmesg
$ #
$ time udfwh mkudffs 0xFFFFFF 0xA
Linux 2.6.0-test7 i686
/mnt/hda11
dd if=/dev/zero of=dd.bin bs=1M seek=0 count=256 2>/dev/null
-rw-rw-r--    1 pat      pat      268435456 Oct 10 10:30 dd.bin
mkudffs 1.0.0b2 for UDF FS 1.0.0-cvs, 2002/02/09
0
hexdump -C wh.bin | head -3
00000000  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa  |................|
*
0853f000  00 00 00 00 00 00 00 00  aa aa aa aa aa aa aa aa  |................|
+++ 2.dmesg     2003-10-10 10:30:43.095187696 -0600
+8 already set
+UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 2919 already set
+UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte=ffffff80
+UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 2919 already set
[...]
 
real    0m16.222s
user    0m3.330s
sys     0m2.929s
$

--- udfwh (new version)

#!/bin/bash

uname -msr
pwd
rm dd.bin
cmd='dd if=/dev/zero of=dd.bin bs=1M seek=255 count=1'
cmd='dd if=/dev/zero of=dd.bin bs=1M seek=0 count=256'
echo "$cmd 2>/dev/null"
$cmd 2>/dev/null
ls -l dd.bin

sudo losetup /dev/loop0 dd.bin
sudo $1 2>&1 | head -1
sudo $1 /dev/loop0 >/dev/null

sudo mount /dev/loop0 /mnt/loop0
sudo chown `id -u`:`id -g` /mnt/loop0/.
dmesg >1.dmesg
cd /mnt/loop0
wh $2 $3
cd -
dmesg >2.dmesg

diff -u 1.dmesg 2.dmesg | grep '^\+' | head -5
rm 1.dmesg 2.dmesg
sudo umount /mnt/loop0
sudo losetup -d /dev/loop0

--- wh.c (same version as before, no change)

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(int argc, char * argv[]) // 0xFF600 0xC8
{
	int width;
	int height;
	char * chars;
	char nonzero;
	FILE * fi;
	int i;
	int rc;
	char const * st;

	--argc; ++argv;
	assert(argc == 2);
	rc = sscanf(argv[0], "0x%X", &width);
	assert(rc == 1);
	rc = sscanf(argv[1], "0x%X", &height);
	assert(rc == 1);

	nonzero = '\xAA';
	chars = malloc(width);
	assert(chars != NULL);
	memset(&chars[0], nonzero, width);

	fi = fopen("wh.bin", "wb");
	assert(fi != NULL);
	for (i = 0; i < height; ++i) {
		fprintf(stderr, "\r%d ", height - i - 1);
		rc = fwrite(chars, 1, width, fi);
		assert(rc == width);
	}
	rc = fclose(fi);
	assert(rc == 0);
	fprintf(stderr, "\n");

	st = "hexdump -C wh.bin | head -3";
	fprintf(stderr, "%s\n", st);
	(void) system(st);

	return 0;
}

---



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: zeroes read back more often than appended
  2003-10-10 16:39       ` Pat LaVarre
@ 2003-10-10 18:15         ` Pat LaVarre
  2003-10-14  0:38           ` Pat LaVarre
  0 siblings, 1 reply; 40+ messages in thread
From: Pat LaVarre @ 2003-10-10 18:15 UTC (permalink / raw)
  To: linux-fsdevel

Ahhhhh eventually I did stumble into a context for `dd` that lets me
control its write buffer lengths while writing nonzero bytes ... and yes
that reproduces this issue too.  No kernel patch required.  No .c app
required.  And, curiously, no dmesg complaints from "fs/udf/balloc.c"
"193" "udf_bitmap_free_blocks".

Pat LaVarre

### example tty log

$ time ddudfwh mkudffs 65535 3072
Linux 2.6.0-test7 i686
/mnt/hda11
dd if=/dev/zero of=dd.bin bs=1M seek=0 count=256 2>/dev/null
-rw-rw-r--    1 pat      pat      268435456 Oct 10 12:11 dd.bin
mkudffs 1.0.0b2 for UDF FS 1.0.0-cvs, 2002/02/09
3072+0 records in
3072+0 records out
3072+0 records in
3072+0 records out
00000000  5e 40 5e 40 5e 40 5e 40  5e 40 5e 40 5e 40 5e 40  |^@^@^@^@^@^@^@^@|
*
002bd000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
 
real    0m41.294s
user    0m5.032s
sys     0m6.528s
$ 

### script udfddwh

#!/bin/bash

uname -msr
pwd
rm dd.bin
cmd='dd if=/dev/zero of=dd.bin bs=1M seek=255 count=1'
cmd='dd if=/dev/zero of=dd.bin bs=1M seek=0 count=256'
echo "$cmd 2>/dev/null"
$cmd 2>/dev/null
ls -l dd.bin

sudo losetup /dev/loop0 dd.bin
sudo $1 2>&1 | head -1
sudo $1 /dev/loop0 >/dev/null

sudo mount /dev/loop0 /mnt/loop0
sudo chown `id -u`:`id -g` /mnt/loop0/.
dmesg >1.dmesg
cd /mnt/loop0
dd bs=$2 count=$3 if=/dev/zero | cat -e >$OLDPWD/nz.bin
dd if=$OLDPWD/nz.bin of=wh.bin bs=$2 count=$3
# rm $OLDPWD/nz.bin
hexdump -C wh.bin | head -3
cd -
dmesg >2.dmesg

diff -u 1.dmesg 2.dmesg | grep '^\+' | head -5
rm 1.dmesg 2.dmesg
sudo umount /mnt/loop0
sudo losetup -d /dev/loop0

###



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: zeroes read back more often than appended
  2003-10-10 18:15         ` Pat LaVarre
@ 2003-10-14  0:38           ` Pat LaVarre
  2003-10-14  1:48             ` Pat LaVarre
  0 siblings, 1 reply; 40+ messages in thread
From: Pat LaVarre @ 2003-10-14  0:38 UTC (permalink / raw)
  To: linux-fsdevel

Kindly offline I received the hint to ...


Try again with both CONFIG_SMP and CONFIG_PREEMPT turned off.


I'm delight to report: works for me!!

Specifically, three times in a row, I passed the test:

ddudfwh mkudffs 65535 3072

Next I will again try to start machines running for days looking for
trouble.  Many thanks.

Pat LaVarre

P.S. I believe drearily conventional, totally uninteresting local detail
includes ...

Just to be careful, before changing my .config, I again confirmed
trouble in a .config more like the defconfig:

$
$ uname -msr
Linux 2.6.0-test7 i686
$
$ egrep '_SMP|_PREE' .config
CONFIG_SMP=y
CONFIG_PREEMPT=y
CONFIG_X86_FIND_SMP_CONFIG=y
CONFIG_X86_SMP=y
$
$ ddudfwh mkudffs 65535 3072
Linux 2.6.0-test7 i686
...
00000000  5e 40 5e 40 5e 40 5e 40  5e 40 5e 40 5e 40 5e 40  |^@^@^@^@^@^@^@^@|
*
012f9000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
$

Next I dedicated a kernel build to alternate .config:

 VERSION = 2
 PATCHLEVEL = 6
 SUBLEVEL = 0
-EXTRAVERSION = -test7
+EXTRAVERSION = .7-udf

Via xconfig Option --> Show Name, I found make xconfig --> Processor
type and features --> Preemptible Kernel.

Changing that PREEMPT option from checked to blank patched my .config:

-CONFIG_PREEMPT=y
+# CONFIG_PREEMPT is not set

Changing the SMP option via xconfig produced many non-comment changes,
again as we saw before in these threads:

+CONFIG_BROKEN_ON_SMP=y
+CONFIG_LOG_BUF_SHIFT=14

-CONFIG_HAVE_DEC_LOCK=y
-CONFIG_LOG_BUF_SHIFT=15
-CONFIG_NR_CPUS=8
-CONFIG_X86_SMP=y
-CONFIG_SMP=y
-CONFIG_X86_EXTRA_IRQS=y
-CONFIG_X86_FIND_SMP_CONFIG=y
-CONFIG_X86_HT=y
-CONFIG_X86_IO_APIC=y
-CONFIG_X86_LOCAL_APIC=y
-CONFIG_X86_MCE_P4THERMAL=y
-CONFIG_X86_MPPARSE=y
-CONFIG_X86_SMP=y
-CONFIG_X86_TRAMPOLINE=y



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: zeroes read back more often than appended
  2003-10-14  0:38           ` Pat LaVarre
@ 2003-10-14  1:48             ` Pat LaVarre
  2003-10-20 23:20               ` Pat LaVarre
  0 siblings, 1 reply; 40+ messages in thread
From: Pat LaVarre @ 2003-10-14  1:48 UTC (permalink / raw)
  To: linux-fsdevel

> Try again with both CONFIG_SMP and CONFIG_PREEMPT turned off.
> 
> I'm delight to report: works for me!!
> 
> Specifically, three times in a row, I passed the test:
> 
> ddudfwh mkudffs 65535 3072
> 
> Next I will again try to start machines running for days looking for
> trouble.  Many thanks.

In my first trial, the time to failure running less controlled tests
here seemingly increased to 2 minutes, from the 0.5 minutes I had
learned to expect.  My second trial ran for 3 minutes.  My third trial
ran for 3 minutes.

Again I read back zeroes where I thought I appended data, and again I
see bursts of dmesg complaints of
fs/udf/balloc.c:192/193:udf_bitmap_free_blocks.

Sorry I was wrong to hope my tests would run much longer.

I'll start the hunt for a new, well-controlled, repeatable test that
quickly causes trouble with SMP and PREEMPT off.  By the rules of this
game of course I remain committed to suspecting my kluge-your-own test
software ... but since for this particular test neither 2 KiB/block nor
zeroes is special, I feel like I want to guess my test code is not at
issue.

My basic setup remains:

time dd of=dd.bin bs=1M count=1024 if=/dev/zero
sudo losetup /dev/loop0 dd.bin
sudo mkudffs /dev/loop0
sudo mount /dev/loop0 /mnt/loop0
sudo chown `id -g`:`id -u` /mnt/loop0/.
cd /mnt/loop0
...

Pat LaVarre

P.S. With SMP and PREEMPT off, well-controlled test cases that
disappoint me by correctly reading the appended data rather than zeroes
now include:

ddudfwh mkudffs 1046016 200
udfwh mkudffs 0xFF600 0xC8
udfwh mkudffs 0xFFFF 0xC00



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: zeroes read back more often than appended
  2003-10-14  1:48             ` Pat LaVarre
@ 2003-10-20 23:20               ` Pat LaVarre
  2003-10-21 14:47                 ` Pat LaVarre
  0 siblings, 1 reply; 40+ messages in thread
From: Pat LaVarre @ 2003-10-20 23:20 UTC (permalink / raw)
  To: linux-fsdevel

Specifically next I hope to show that appending nonzero bytes to
multiple open files reads back wrong.

Seemingly as yet I have some tupographical errors in the following.

With nonzero dd seek and SMP on and PREEMPT on in -test8, initially I
see:
198 whd: whd.c:45: main: Assertion `rc == width' failed.

Pat LaVarre

--- whd.c

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

static FILE * fi[1234];

int main(int argc, char * argv[]) // 0xFF600 0xC8
{
	int width;
	int height;
	int depth;
	char * chars;
	char nonzero;
	int h;
	int d;
	int rc;

	--argc; ++argv;
	assert(argc == 3);
	rc = sscanf(argv[0], "0x%X", &width);
	assert(rc == 1);
	rc = sscanf(argv[1], "0x%X", &height);
	assert(rc == 1);
	rc = sscanf(argv[1], "0x%X", &depth);
	assert(rc == 1);
	assert(depth < (sizeof fi / sizeof fi[0]));

	nonzero = '\xAA';
	chars = malloc(width);
	assert(chars != NULL);
	memset(&chars[0], nonzero, width);

	for (d = 0; d < depth; ++d) {
		char st[123];
		sprintf(&st[0], "whd%d.bin", d);
		fi[d] = fopen(&st[0], "wb");
		assert(fi[d] != NULL);
	}

	for (h = 0; h < height; ++h) {
		fprintf(stderr, "\r%d ", height - h - 1);
		for (d = 0; d < depth; ++d) {
			rc = fwrite(chars, 1, width, fi[d]);
			assert(rc == width);
		}
	}

	for (d = 0; d < depth; ++d) {
		rc = fclose(fi[d]);
		assert(rc == 0);
	}

	fprintf(stderr, "\n");

	for (d = 0; d < depth; ++d) {
		char st[123];
		sprintf(&st[0], "hexdump -C whd%d.bin | head -3", d);
		fprintf(stderr, "%s\n", st);
		(void) system(st);
	}

	return 0;
}

--- udfwhd

#!/bin/bash

uname -msr
pwd
rm dd.bin
cmd='dd if=/dev/zero of=dd.bin bs=1M seek=0 count=256'
cmd='dd if=/dev/zero of=dd.bin bs=1M seek=255 count=1'
echo "$cmd 2>/dev/null"
$cmd 2>/dev/null
ls -l dd.bin

sudo losetup /dev/loop0 dd.bin
sudo $1 2>&1 | head -1
sudo $1 /dev/loop0 >/dev/null

sudo mount /dev/loop0 /mnt/loop0
sudo chown `id -u`:`id -g` /mnt/loop0/.
dmesg >1.dmesg
cd /mnt/loop0
whd $2 $3 $4
cd -
dmesg >2.dmesg

diff -u 1.dmesg 2.dmesg | grep '^\+' | head -5
rm 1.dmesg 2.dmesg
sudo umount /mnt/loop0
sudo losetup -d /dev/loop0

---



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: zeroes read back more often than appended
  2003-10-20 23:20               ` Pat LaVarre
@ 2003-10-21 14:47                 ` Pat LaVarre
  2003-10-21 16:46                   ` Pat LaVarre
  0 siblings, 1 reply; 40+ messages in thread
From: Pat LaVarre @ 2003-10-21 14:47 UTC (permalink / raw)
  To: linux-fsdevel

> Seemingly as yet .. tupographical errors ...
> 	rc = sscanf(argv[0], "0x%X", &width); ...
> 	rc = sscanf(argv[1], "0x%X", &height); ...
> 	rc = sscanf(argv[1], "0x%X", &depth); ...

Tupo #1 found.  argv[0:1:2] meant, argv [0:1:1] written.

Pat LaVarre



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: zeroes read back more often than appended
  2003-10-21 14:47                 ` Pat LaVarre
@ 2003-10-21 16:46                   ` Pat LaVarre
  2003-10-21 18:44                     ` Pat LaVarre
  2003-10-23 18:52                     ` Pat LaVarre
  0 siblings, 2 replies; 40+ messages in thread
From: Pat LaVarre @ 2003-10-21 16:46 UTC (permalink / raw)
  To: linux-fsdevel

Yes indeed, again I see udf reading of more zeroes than appended, if I
try 2.6.0-test8 with SMP, with PREEMPT, on seek-write backing store, via
the trivially revised whd.c and fswhd script quoted as a patch below.

Why so carefully do nothing different in a more complex way?

So that now more easily we can try changing those variables.  In
particular, I hope to show failures without SMP, without PREEMPT, on
preallotted backing store, in such tests as:

fswhd 0 768 mkudffs 0xFF600 0xC8 0x3

Pat LaVarre

diff -Nur o/tty.txt bin/tty.txt
--- o/tty.txt	1969-12-31 17:00:00.000000000 -0700
+++ bin/tty.txt	2003-10-21 09:20:38.113900136 -0600
@@ -0,0 +1,18 @@
+$
+$ cd /mnt/hda11; fswhd 255 1 mkudffs 0xFF600 0xC8 0x1
+Linux 2.6.0-test8 i686
+/mnt/hda11
+dd if=/dev/zero of=dd.bin bs=1M seek=255 count=1 2>/dev/null
+-rw-rw-r--    1 pat      pat      268435456 Oct 21 09:18 dd.bin
+mkudffs 1.0.0b2 for UDF FS 1.0.0-cvs, 2002/02/09
+0
+hexdump -C whd0.bin | head -3
+00000000  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa  |................|
+*
+034cd000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
++++ 2.dmesg     2003-10-21 09:19:06.301857688 -0600
++fffff
++UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 2951 already set
++UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte=ffffff80
++UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 2951 already set
+$
diff -Nur o/whd.c bin/whd.c
--- o/whd.c	1969-12-31 17:00:00.000000000 -0700
+++ bin/whd.c	2003-10-21 08:45:30.000000000 -0600
@@ -0,0 +1,67 @@
+#include <assert.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+static FILE * fi[1234];
+
+int main(int argc, char * argv[]) // 0xFF600 0xC8
+{
+	int width;
+	int height;
+	int depth;
+	char * chars;
+	char nonzero;
+	int h;
+	int d;
+	int rc;
+
+	--argc; ++argv;
+	assert(argc == 3);
+	rc = sscanf(argv[0], "0x%X", &width);
+	assert(rc == 1);
+	rc = sscanf(argv[1], "0x%X", &height);
+	assert(rc == 1);
+	rc = sscanf(argv[2], "0x%X", &depth);
+	assert(rc == 1);
+	assert(depth < (sizeof fi / sizeof fi[0]));
+
+	nonzero = '\xAA';
+	chars = malloc(width);
+	assert(chars != NULL);
+	memset(&chars[0], nonzero, width);
+
+	for (d = 0; d < depth; ++d) {
+		char st[123];
+		sprintf(&st[0], "whd%d.bin", d);
+		fi[d] = fopen(&st[0], "wb");
+		assert(fi[d] != NULL);
+	}
+
+	for (h = 0; h < height; ++h) {
+		fprintf(stderr, "\r%d ", height - h - 1);
+		for (d = 0; d < depth; ++d) {
+			rc = fwrite(chars, 1, width, fi[d]);
+			if (rc != width) {
+				perror("fwrite");
+				exit(-__LINE__);
+			}
+		}
+	}
+
+	for (d = 0; d < depth; ++d) {
+		rc = fclose(fi[d]);
+		assert(rc == 0);
+	}
+
+	fprintf(stderr, "\n");
+
+	for (d = 0; d < depth; ++d) {
+		char st[123];
+		sprintf(&st[0], "hexdump -C whd%d.bin | head -3", d);
+		fprintf(stderr, "%s\n", st);
+		(void) system(st);
+	}
+
+	return 0;
+}
diff -Nur o/fswhd bin/fswhd
--- o/fswhd	1969-12-31 17:00:00.000000000 -0700
+++ bin/fswhd	2003-10-21 09:15:34.103116800 -0600
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+uname -msr
+pwd
+rm dd.bin
+cmd="dd if=/dev/zero of=dd.bin bs=1M seek=$1 count=$2"
+echo "$cmd 2>/dev/null"
+$cmd 2>/dev/null
+ls -l dd.bin
+
+sudo losetup /dev/loop0 dd.bin
+sudo $3 2>&1 | head -1
+sudo $3 /dev/loop0 >/dev/null
+
+sudo mount /dev/loop0 /mnt/loop0
+sudo chown `id -u`:`id -g` /mnt/loop0/.
+dmesg >1.dmesg
+cd /mnt/loop0
+whd $4 $5 $6
+cd -
+dmesg >2.dmesg
+
+diff -u 1.dmesg 2.dmesg | grep '^\+' | head -5
+rm 1.dmesg 2.dmesg
+sudo umount /mnt/loop0
+sudo losetup -d /dev/loop0



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: zeroes read back more often than appended
  2003-10-21 16:46                   ` Pat LaVarre
@ 2003-10-21 18:44                     ` Pat LaVarre
  2003-10-23 18:52                     ` Pat LaVarre
  1 sibling, 0 replies; 40+ messages in thread
From: Pat LaVarre @ 2003-10-21 18:44 UTC (permalink / raw)
  To: linux-fsdevel

Yes I can confirm.

Try appending nonzero to multiple files in a round robin sequence, and
udf.ko reads back zero in place of the nonzero written.  mkfs in place
of mkudffs reads back only the nonzero written.

CONFIG_SMP is not set.  CONFIG_PREEMPT is not set.  I did tell dd to
write all the backing store without skipping over any of it.

Changing those variables does fix the "width x height" test case of one
file, but not the "width x height x depth" test case of multiple files.

In particular I tried:

fswhd 0 768 mkudffs 0xFF600 0xC8 0x3
fswhd 0 768 mkudffs 0xFF600 0xC8 0x1
fswhd 0 768 mkudffs 0xFF600 0xC8 0x2

That sequence actually took down my kernel once, but for me that trouble
did not repeat.  I do not yet know where to go to begin learning how to
see the dmesg leading up to an oops.  oops kill my remote ssh.

Pat LaVarre

P.S. tty logs follow.  Two files with mkudffs, reads zeroes from both
files ouch.  One file with mkudffs, ok because of CONFIG = PREEMPT =
off.  Two files with mkfs in place of mkudffs, ok.

$
$ cd /mnt/hda11
$
$ fswhd 0 768 mkudffs 0xFF600 0xC8 0x2
Linux 2.6.0.8-udf i686
/mnt/hda11
dd if=/dev/zero of=dd.bin bs=1M seek=0 count=768 2>/dev/null
-rw-rw-r--    1 pat      pat      805306368 Oct 21 11:49 dd.bin
mkudffs 1.0.0b2 for UDF FS 1.0.0-cvs, 2002/02/09
0
hexdump -C whd0.bin | head -3
00000000  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa  |................|
*
06fbe000  00 00 00 00 00 00 00 00  aa aa aa aa aa aa aa aa  |................|
hexdump -C whd1.bin | head -3
00000000  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa  |................|
*
06ebb000  00 00 00 00 00 00 00 00  aa aa aa aa aa aa aa aa  |................|
+++ 2.dmesg     2003-10-21 11:50:13.486227568 -0600
+ already set
+UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 15865 already set
+UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte= 2
+UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 15865 already set
$
$ fswhd 0 768 mkudffs 0xFF600 0xC8 0x1
Linux 2.6.0.8-udf i686
/mnt/hda11
dd if=/dev/zero of=dd.bin bs=1M seek=0 count=768 2>/dev/null
-rw-rw-r--    1 pat      pat      805306368 Oct 21 11:46 dd.bin
mkudffs 1.0.0b2 for UDF FS 1.0.0-cvs, 2002/02/09
0
hexdump -C whd0.bin | head -3
00000000  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa  |................|
*
0c783000
$
$ fswhd 0 768 mkfs 0xFF600 0xC8 0x2
Linux 2.6.0.8-udf i686
/mnt/hda11
dd if=/dev/zero of=dd.bin bs=1M seek=0 count=768 2>/dev/null
-rw-rw-r--    1 pat      pat      805306368 Oct 21 11:52 dd.bin
Usage: mkfs [-V] [-t fstype] [fs-options] device [size]
mke2fs 1.32 (09-Nov-2002)
0
hexdump -C whd0.bin | head -3
00000000  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa  |................|
*
0c783000
hexdump -C whd1.bin | head -3
00000000  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa  |................|
*
0c783000
$



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: editable udf metadata
  2003-10-08 17:51       ` Pat LaVarre
  2003-10-08 18:09         ` big-endian udfct_1_0r2 Pat LaVarre
@ 2003-10-21 21:54         ` Pat LaVarre
  2003-10-21 23:17           ` Pat LaVarre
  2003-10-22  8:15           ` same page access Mark B
  1 sibling, 2 replies; 40+ messages in thread
From: Pat LaVarre @ 2003-10-21 21:54 UTC (permalink / raw)
  To: linux-fsdevel

[ BC linux_udf@hpesjro.fc.hp.com ]

> The web trail I know to the udfct_1_0r2 tool is:
> 
> http://www.google.com/search?q=philips+udf+verifier
> http://www.google.com/search?q=philips+udf+verifier&btnI=1
> http://www.extra.research.philips.com/udf/
> http://www.extra.research.philips.com/udf/download.html
> 
> I see udfct_1_0r2 describes itself as designed to work in Win 9X/ME.
> 
> I see compiling a wnaspi32.dll (e.g. via the wnaspi32.cpp for mingw gcc
> attached) makes udfct_1_0r2 work in Win 2K/XP too.
> 
> I'm told Linux udfct_1_0r2 as yet works only on disk images ...

I saw this claim kindly challenged here, I'm now beginning to believe
the challenge.  I have now found:

http://www.extra.research.philips.com/udf/download/udfct_1_0r2.tar.gz
FAQ.TXT
Binaries with SCSI/Atapi support are only present for Windows and Linux

Possibly I was just remembering udfct as yet another example of a lab
tool that chokes because Mac OS X has no root-privileged SCSI pass thru.

Pat LaVarre



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: editable udf metadata
  2003-10-21 21:54         ` editable udf metadata Pat LaVarre
@ 2003-10-21 23:17           ` Pat LaVarre
  2003-10-23 16:06             ` Pat LaVarre
  2003-10-22  8:15           ` same page access Mark B
  1 sibling, 1 reply; 40+ messages in thread
From: Pat LaVarre @ 2003-10-21 23:17 UTC (permalink / raw)
  To: linux-fsdevel

Correction.

We mean to say udfct in Linux needs no SCSI pass thru, right?

We mean to say udfct only needs a raw block device?

Mac OS X has those too, so Mac OS X could work if we volunteer a patch?

Pat LaVarre

$ cd udfct_1.0r2
$ less FAQ.txt
$ cd ../udfct_1.0r2/src/udf_tester
$ make
...
$
$ ./udf_test /dev/sg0
UDF Conformance Testing Application
(c) Koninklijke Philips Electronics N.V. 1999-2003
Application version: 1.0r2
UCT Core version   : 1.0r2
...
No image configuration file /dev/sg0.cfg 
 
  Error: Image file chunk byte size: 0,
-        expected: not zero, at most (1048575 * 2048), and
-        an integral multiple of the block size (2048).
-   for: /dev/sg0
 
Cannot create image device
...
fatal error: Exit code 2, quit.
...
$
$ ./udf_test -show-scsi
...
Unknown, misplaced or unused command line arguments:
        -show-scsi
fatal error: Exit code 2, quit.
...
$
$ sudo dd of=/dev/scd0 bs=2K count=1 if=/dev/zero
1+0 records in
1+0 records out
$
$ mkudffs /dev/scd0
trying to change type of multiple extents
$
$ sudo mkudffs /dev/scd0
start=0, blocks=16, type=RESERVED
...
start=524287, blocks=1, type=ANCHOR
$
$ sudo udf_test /dev/scd0 >1
$ sudo udf_test /dev/scd0 >2
$ diff 1 2
50c50
<       Start time   : 2003-10-21 17:14:31 -06:00 (west of UTC)
---
>       Start time   : 2003-10-21 17:14:33 -06:00 (west of UTC)
$
$ grep -i 'note:' 1 | wc -l
      0
$ grep -i 'warning:' 1 | wc -l
      0
$ grep -i 'error:' 1 | wc -l
      1
$
$ grep -i -A 6 'error:' 1
        EFE  28  icbtag error: parentICBLocation: (34,0),
-                       recommended: (0,0) for strategy type 4.
-                Icbtag Parent ICB Location shall not point to itself
-                or to a higher parent in the directory hierarchy.
-                ECMA 3rd edition 4/8.10.1, 4/14.6.7, UDF 2.3.5.3.
-                icbtag: ECMA 4/14.6.*, 4/A.5, UDF 2.3.5.*, 6.6
-                name: "lost+found"
$



^ permalink raw reply	[flat|nested] 40+ messages in thread

* same page access
  2003-10-21 21:54         ` editable udf metadata Pat LaVarre
  2003-10-21 23:17           ` Pat LaVarre
@ 2003-10-22  8:15           ` Mark B
  2003-10-22 11:21             ` Matthew Wilcox
  1 sibling, 1 reply; 40+ messages in thread
From: Mark B @ 2003-10-22  8:15 UTC (permalink / raw)
  To: linux-fsdevel

Hello all!

I usually dig around kernel code to find answers, but I think this would take 
alot more time to dig than to explain from someone.

Process 1 opens a file x, and does a read on the first few bytes, which in 
turn causes kernel to load the first page from the file (if the filesystem is 
using address_space_operations for all of it's access to files)
Now a process 2 opens the same file and overwrites a few first bytes.

Now, how does the kernel update the Process 1's page if it is already loaded? 

Mark Burazin

-- 
Mark Burazin 
mark@lemna.hr
---<>---<>---<>---<>---<>---<>---<>---<>---<>
Lemna d.o.o.
http://www.lemna.biz - info@lemna.hr
<>---<>---<>---<>---<>---<>---<>---<>---<>---



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: same page access
  2003-10-22  8:15           ` same page access Mark B
@ 2003-10-22 11:21             ` Matthew Wilcox
  2003-10-22 17:09               ` Mark B
  0 siblings, 1 reply; 40+ messages in thread
From: Matthew Wilcox @ 2003-10-22 11:21 UTC (permalink / raw)
  To: Mark B; +Cc: linux-fsdevel

On Wed, Oct 22, 2003 at 10:15:17AM +0200, Mark B wrote:
> I usually dig around kernel code to find answers, but I think this would take 
> alot more time to dig than to explain from someone.
> 
> Process 1 opens a file x, and does a read on the first few bytes, which in 
> turn causes kernel to load the first page from the file (if the filesystem is 
> using address_space_operations for all of it's access to files)
> Now a process 2 opens the same file and overwrites a few first bytes.
> 
> Now, how does the kernel update the Process 1's page if it is already loaded? 

It doesn't.  A subsequent write() to a file doesn't affect any previous
read()s by this or any other process.  The situation is diferent if
you're talking about mmap(), but as far as I can tell, you aren't.

-- 
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: same page access
  2003-10-22 11:21             ` Matthew Wilcox
@ 2003-10-22 17:09               ` Mark B
  2003-10-22 17:10                 ` Matthew Wilcox
  0 siblings, 1 reply; 40+ messages in thread
From: Mark B @ 2003-10-22 17:09 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: linux-fsdevel

On Wednesday 22 October 2003 13:21, you wrote:
> On Wed, Oct 22, 2003 at 10:15:17AM +0200, Mark B wrote:
> > I usually dig around kernel code to find answers, but I think this would
> > take alot more time to dig than to explain from someone.
> >
> > Process 1 opens a file x, and does a read on the first few bytes, which
> > in turn causes kernel to load the first page from the file (if the
> > filesystem is using address_space_operations for all of it's access to
> > files)
> > Now a process 2 opens the same file and overwrites a few first bytes.
> >
> > Now, how does the kernel update the Process 1's page if it is already
> > loaded?
>
> It doesn't.  A subsequent write() to a file doesn't affect any previous
> read()s by this or any other process.  The situation is diferent if
> you're talking about mmap(), but as far as I can tell, you aren't.

Mmm sorry I formulated the question a bit wrong, here's the correction;
I know that the data what was read() before the write() can't be affected, 
it's a perfectly normal condition, but I'm talking about the page of data the 
kernel loaded in the VFS for that file handle, is the data the same copy of 
data that is served to other processes? So a read() by P1 after P2 has did a 
write() in the same area, will it lead to a reload of the page since the P2 
marked the area dirty? Or simply they're working on the same memory page? Is 
there any locking (by commit_write()?)

Mark
-- 
Mark Burazin 
mark@lemna.hr
---<>---<>---<>---<>---<>---<>---<>---<>---<>
Lemna d.o.o.
http://www.lemna.biz - info@lemna.hr
<>---<>---<>---<>---<>---<>---<>---<>---<>---



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: same page access
  2003-10-22 17:09               ` Mark B
@ 2003-10-22 17:10                 ` Matthew Wilcox
  0 siblings, 0 replies; 40+ messages in thread
From: Matthew Wilcox @ 2003-10-22 17:10 UTC (permalink / raw)
  To: Mark B; +Cc: Matthew Wilcox, linux-fsdevel

On Wed, Oct 22, 2003 at 07:09:58PM +0200, Mark B wrote:
> Mmm sorry I formulated the question a bit wrong, here's the correction;
> I know that the data what was read() before the write() can't be affected, 
> it's a perfectly normal condition, but I'm talking about the page of data the 
> kernel loaded in the VFS for that file handle, is the data the same copy of 
> data that is served to other processes? So a read() by P1 after P2 has did a 
> write() in the same area, will it lead to a reload of the page since the P2 
> marked the area dirty? Or simply they're working on the same memory page? Is 
> there any locking (by commit_write()?)

They're working from the same memory page (in the page cache).  This same
page is also shared with any process that has a shared mmap.

-- 
"It's not Hollywood.  War is real, war is primarily not about defeat or
victory, it is about death.  I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk

^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: editable udf metadata
  2003-10-21 23:17           ` Pat LaVarre
@ 2003-10-23 16:06             ` Pat LaVarre
  2003-10-24 21:40               ` Pat LaVarre
  0 siblings, 1 reply; 40+ messages in thread
From: Pat LaVarre @ 2003-10-23 16:06 UTC (permalink / raw)
  To: linux-fsdevel

> We mean to say udfct in Linux needs no SCSI pass thru, right?
> We mean to say udfct only needs a raw block device?
> Mac OS X has those too, so Mac OS X could work if we volunteer a patch?

No explicit answers yet.

But here now in summary we do have four UDF FAQ's answered, per request
kindly received offline:

/// Contents

1: Where on the web does the fsck for linux udf.ko appear?
2: Why does an erased disk fail udf fsck?
3: Where on the web does an already `make`able udf fsck appear?
4: Why doesn't udfct_1_0r2/ understand `./configure ; make`?

/// 1: Where on the web does the fsck for linux udf.ko appear?

As the udffsck/ of:

$ export CVSROOT=:pserver:anonymous@cvs.sourceforge.net:/cvsroot/linux-udf
$ cvs login
(Logging in to anonymous@cvs.sourceforge.net)
CVS password:
$ cvs co udftools
...

/// 2: Why does an erased disk fail udf fsck?

It doesn't, if you erased your disk correctly.

The one "error:|warning:|note:" you can expect is "EFE  28  icbtag
error: parentICBLocation: (10,0)," if you erased your disk via the
mkudffs/mkudffs of 2002 Feb 9 1.0.0b2 udftools freely offered as the
"latest file release" of:
http://sourceforge.net/projects/linux-udf/

If you want no "error:|warning:|note:", then instead you can try the
mkudffs/mkudffs you get via CVS.

/// 3: Where on the web does an already `make`able udf fsck appear?

We haven't yet published how to make the cvs udf fsck.

At the end of the web trail:

http://www.google.com/search?q=philips+udf+test
http://www.google.com/search?q=philips+udf+verifier&btnI=1
http://www.extra.research.philips.com/udf/
http://www.extra.research.philips.com/udf/download.html
http://www.extra.research.philips.com/udf/download/udfct_1_0r2.tar.gz

The src/udf_tester/udf_test you make is the "Philips UDF Verifier" of
Gerrit Scholls et al.

/// 4: Why doesn't udfct_1_0r2/ understand `./configure ; make`?

I have no idea.  But a tty log of what worked for me follows:

$ cd udfct_1.0r2
$ less FAQ.txt
$ cd src/udf_tester
$ make
...
$
$ ./udf_test /dev/sg0
UDF Conformance Testing Application
(c) Koninklijke Philips Electronics N.V. 1999-2003
Application version: 1.0r2
UCT Core version   : 1.0r2
...
No image configuration file /dev/sg0.cfg 
 
  Error: Image file chunk byte size: 0,
-        expected: not zero, at most (1048575 * 2048), and
-        an integral multiple of the block size (2048).
-   for: /dev/sg0
 
Cannot create image device
...
fatal error: Exit code 2, quit.
...
$
$ ./udf_test -show-scsi
...
Unknown, misplaced or unused command line arguments:
        -show-scsi
fatal error: Exit code 2, quit.
...
$
$ sudo dd of=/dev/scd0 bs=2K count=1 if=/dev/zero
1+0 records in
1+0 records out
$
$ mkudffs /dev/scd0
trying to change type of multiple extents
$
$ sudo mkudffs /dev/scd0
start=0, blocks=16, type=RESERVED
...
start=524287, blocks=1, type=ANCHOR
$
$ sudo udf_test /dev/scd0 >1
$ sudo udf_test /dev/scd0 >2
$ diff 1 2
50c50
<       Start time   : 2003-10-21 17:14:31 -06:00 (west of UTC)
---
>       Start time   : 2003-10-21 17:14:33 -06:00 (west of UTC)
$
$ grep -i 'note:' 1 | wc -l
      0
$ grep -i 'warning:' 1 | wc -l
      0
$ grep -i 'error:' 1 | wc -l
      1
$
$ grep -i -A 6 'error:' 1
        EFE  28  icbtag error: parentICBLocation: (34,0),
-                       recommended: (0,0) for strategy type 4.
-                Icbtag Parent ICB Location shall not point to itself
-                or to a higher parent in the directory hierarchy.
-                ECMA 3rd edition 4/8.10.1, 4/14.6.7, UDF 2.3.5.3.
-                icbtag: ECMA 4/14.6.*, 4/A.5, UDF 2.3.5.*, 6.6
-                name: "lost+found"
$



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: zeroes read back more often than appended
  2003-10-21 16:46                   ` Pat LaVarre
  2003-10-21 18:44                     ` Pat LaVarre
@ 2003-10-23 18:52                     ` Pat LaVarre
  2003-10-27 21:55                       ` Pat LaVarre
  1 sibling, 1 reply; 40+ messages in thread
From: Pat LaVarre @ 2003-10-23 18:52 UTC (permalink / raw)
  To: linux-fsdevel

> > From: Pat LaVarre ...
> >
> > Try appending nonzero to multiple files in a
> > round robin sequence, and udf.ko reads back
> > zero in place of the nonzero written.  mkfs
> > in place of mkudffs reads back only the
> > nonzero written.

Furthermore, now I can confirm, as for udf.ko author Ben Fennema, so
likewise for me, the udf image unmounted after reading more zeroes than
appended ...

... does fail the udf fsck that is udfct udf_test.

Pat LaVarre

$ find `which udf_test` -printf '%l\n'
/home/pat/k/udfct_1.0r2/src/udf_tester/udf_test
$
$ fswhd 0 768 mkudffs 0xFF600 0xC8 0x2
...
$
$ udf_test dd.bin | grep -i 'final udf rev'
  Final UDF Revision range: 2.01 only
$
$  udf_test -udf 2.01 dd.bin | egrep -i '(error|warning|note):' | wc -l
     13
$
$ udf_test -udf 2.01 dd.bin | grep -i 'count:'
    Error count:   6    total occurrences:    10
  Warning count:   1    total occurrences:     1
$
$  udf_test -udf 2.01 dd.bin | egrep -i '(error|warning|note):'
        AED  1352 Error: 6 non-zero bytes found in a 696 bytes blank area
        EFE  72  Error: Logical Blocks Recorded: 102039, expected: 44269,
        AED  968 Error: 6 non-zero bytes found in a 1080 bytes blank area
        AED  936 long_ad file tail error: Extent Type: 0, expected: 1,
        AED  952 long_ad file tail error: Extent Type: 0, expected: 1,
        EFE  72  Error: Logical Blocks Recorded: 102019, expected: 46475,
  ==>   Note: 7 multiple allocated blocks inside partition space,
         Error:   7 multiple allocated blocks in extent for long ADs.
         Error:   7 multiple allocated blocks in extent for long ADs.
          Error: 2 used blocks marked as unallocated or freed
          Warning: 113305 unused blocks NOT marked as unallocated.
        LVID 80  FreeSpaceTable error: Physical Partition p0 Free Space: 188597,
-       Note: The verifier may be unable to find the correct values for
$



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: editable udf metadata
  2003-10-23 16:06             ` Pat LaVarre
@ 2003-10-24 21:40               ` Pat LaVarre
  0 siblings, 0 replies; 40+ messages in thread
From: Pat LaVarre @ 2003-10-24 21:40 UTC (permalink / raw)
  To: linux-fsdevel

> 3: Where on the web does an already `make`able udf fsck appear?
> 
> We haven't yet published how to make the cvs udf fsck.
> ...

Correction.  By now we have explained how to make.  Now the answer is
merely:

./bootstrap
./configure
make

However, as yet, not counting comments, the udffsck/udffsck tool we're
making is merely:

int main(int argc, char *argv[])
{
	return 0;
}

So as yet the FAQ directing you to udfct udf_test (aka the Philips UDF
Verifier) still applies.

Pat LaVarre



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: zeroes read back more often than appended
  2003-10-23 18:52                     ` Pat LaVarre
@ 2003-10-27 21:55                       ` Pat LaVarre
  0 siblings, 0 replies; 40+ messages in thread
From: Pat LaVarre @ 2003-10-27 21:55 UTC (permalink / raw)
  To: linux-fsdevel

> > List:     linux-fsdevel
> > Subject:  given fs dies if SMP, if PREEMPT, if open two or more
> >
> > ... Can anyone here advise me specifically
> > what to try next? ... trouble ... says to me
> > something in udf.ko doesn't know how to
> > reenter itself, right?

Sure.

> > So my next step is to try reading while
> > writing, to see if that breaks also, right?

I did try, but I got the wrong answer.

Writing while reading does Not break so easily.

For example, writing via a loop of (read file 0, write file 1, read file
2) works ok, at least at my desk for width x height of 0xFF600 x 0xC8
tried three times in a row.  Also I tried a read by dd in parallel with
a loop to append, again no joy.

So far, all that breaks is writing while writing.  That does break in
-test9, no matter SMP/PREEMPT, as described by this thread.

> > in -test9 as described

Either `make oldconfig` somewhere near -test9 injects some noise, or I
erred in past configurations myself.

Specifically, to have my -test9 .config differ minimally from `make
defconfig`, I had to work to ensure I agreed with defconfig on two
points:

$ egrep 'SOFTWARE|SPINLOCK' .config
# CONFIG_SOFTWARE_SUSPEND is not set
CONFIG_DEBUG_SPINLOCK_SLEEP=y
$

Pat LaVarre



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: zeroes read back more often than appended
@ 2003-12-11 18:42 Pat LaVarre
  0 siblings, 0 replies; 40+ messages in thread
From: Pat LaVarre @ 2003-12-11 18:42 UTC (permalink / raw)
  To: linux-fsdevel

> From: [offline]
> Date: Thu, 4 Dec 2003 16:28:59 -0700
> To: p.lavarre@ieee.org
> ...
> bs = 4096 (or whatever)
> data[bs]
> for i 1-60
>   seek (i*2*bs)
>   write(data)

In less than a second, writing a /dev/loop0 toy volume of about 0.001
GiB this way breaks 2.6.0-test11 udf.ko via "fs/udf/balloc.c:192:"
"udf_bitmap_free_blocks: bit ... already set".

Here this test breaks udf.ko for bs in 2048 4096, loop in 1..60, writing
zero or nonzero.  The resulting file is hole, hole, write, hole, write, ....

Here this test does Not break udf.ko for bs in 2047 2049, for loop in
0..60 0..59 1..59.

Pat LaVarre


^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: zeroes read back more often than appended
  2003-11-28 18:20   ` Pat LaVarre
@ 2003-11-28 18:29     ` Pat LaVarre
  0 siblings, 0 replies; 40+ messages in thread
From: Pat LaVarre @ 2003-11-28 18:29 UTC (permalink / raw)
  To: linux-fsdevel

// To recap now, next game suggested is:

CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_INFO=y
CONFIG_DEBUG_SLAB=y
CONFIG_MAGIC_SYSRQ=y

gdb /usr/src/linux/vmlinux /proc/kcore

// We're motivated to play because when we try
// appending nonzero to files, then we see:

"Two files with mkudffs, reads zeroes from both files ouch."

"One file with mkudffs, ok" if and only if CONFIG_SMP = CONFIG_PREEMPT =
off.

"Two files with mkfs in place of mkudffs, ok."

// To reproduce these results involves such
// steps as the following.
//
// Reliably reproducing this trouble as yet
// requires whole minutes of real time from a PC
// that can rebuild the defconfig kernel in
// about six minutes.

http://sourceforge.net/projects/linux-udf/
ftp://members.aol.com/plscsi/linux/udftools-cvs.2003-11-26.tar.gz

mkdir /mnt/loop0
ln -s /sbin/losetup ~/bin
ln -s $PWD/mkudffs ~/bin

cd ~/bin
patch <http://marc.theaimsgroup.com/?l=linux-fsdevel&m=106675517702950
rm tty.txt
gcc -o whd -Wall whd.c

date; time fswhd 767 1 mkudffs 0xFF 0x10 0x2

date; time fswhd 0 768 mkudffs 0xFF600 0xC8 0x2
date; time fswhd 0 768 mkudffs 0xFF600 0xC8 0x1

//

Pat LaVarre



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: zeroes read back more often than appended
  2003-11-27  0:45 ` Pat LaVarre
@ 2003-11-28 18:20   ` Pat LaVarre
  2003-11-28 18:29     ` Pat LaVarre
  0 siblings, 1 reply; 40+ messages in thread
From: Pat LaVarre @ 2003-11-28 18:20 UTC (permalink / raw)
  To: linux-fsdevel

> No improvement in 2.6.0-test10
> with CONFIG_SMP = CONFIG_PREEMPT = default = on.

Turning SMP off and PREEMPT off again fixes the case of appending
nonzero to a single file, again without improving the case of appending
nonzero to two or more files.

Pat LaVarre

P.S. Relevant tty log include:

$ egrep 'CONFIG_(SMP|PREEMPT)' .config
# CONFIG_SMP is not set
# CONFIG_PREEMPT is not set
$
$ egrep '^CONFIG_DEBUG' .config
CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_SLAB=y
CONFIG_DEBUG_INFO=y
CONFIG_DEBUG_SPINLOCK_SLEEP=y
$
$ date; time fswhd 0 768 mkudffs 0xFF600 0xC8 0x2
Fri Nov 28 10:56:18 MST 2003
Linux 2.6.0-10.udf i686
/home/pat
dd if=/dev/zero of=dd.bin bs=1M seek=0 count=768 2>/dev/null
-rw-rw-r--    1 pat      pat      805306368 Nov 28 10:57 dd.bin
mkudffs 1.0.0b2 for UDF FS 1.0.0-cvs, 2002/02/09
0
hexdump -C whd0.bin | head -3
00000000  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa  |................|
*
06fbc800  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
hexdump -C whd1.bin | head -3
00000000  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa  |................|
*
06fbb000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
+++ 2.dmesg     2003-11-28 10:59:03.434667328 -0700
+DF-fs DEBUG fs/udf/super.c:1085:udf_load_logicalvol: Partition (0:0) type 1 on volume 1
+UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 12 already set
+UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte=70
+UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 13 already set
 
real    2m45.760s
user    0m7.849s
sys     0m7.472s
$
$ date; time fswhd 0 768 mkudffs 0xFF600 0xC8 0x1
Fri Nov 28 11:08:59 MST 2003
Linux 2.6.0-10.udf i686
/home/pat
dd if=/dev/zero of=dd.bin bs=1M seek=0 count=768 2>/dev/null
-rw-rw-r--    1 pat      pat      805306368 Nov 28 11:09 dd.bin
mkudffs 1.0.0b2 for UDF FS 1.0.0-cvs, 2002/02/09
0
hexdump -C whd0.bin | head -3
00000000  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa  |................|
*
0c783000
 
real    2m12.085s
user    0m3.912s
sys     0m3.393s
$ 



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: zeroes read back more often than appended
  2003-11-20 16:41 Pat LaVarre
@ 2003-11-27  0:45 ` Pat LaVarre
  2003-11-28 18:20   ` Pat LaVarre
  0 siblings, 1 reply; 40+ messages in thread
From: Pat LaVarre @ 2003-11-27  0:45 UTC (permalink / raw)
  To: linux-fsdevel

No improvement in 2.6.0-test10 with CONFIG_SMP = CONFIG_PREEMPT = default = on.

$ uname -msr
Linux 2.6.0-test10 i686
$
$ date ; time fswhd 0 768 mkudffs 0xFF600 0xC8 0x1
Wed Nov 26 17:03:48 MST 2003
Linux 2.6.0-test10 i686
/home/pat
dd if=/dev/zero of=dd.bin bs=1M seek=0 count=768 2>/dev/null
-rw-rw-r--    1 pat      pat      805306368 Nov 26 17:04 dd.bin
mkudffs 1.0.0b2 for UDF FS 1.0.0-cvs, 2002/02/09
0
hexdump -C whd0.bin | head -3
00000000  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa  |................|
*
01f91000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
+++ 2.dmesg     2003-11-26 17:05:38.838645504 -0700
+mplete Error }
+UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 2728 already set
+UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte= 1
+UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 2728 already set
 
real    2m15.777s
user    0m2.438s
sys     0m6.433s
$
$ date ; time fswhd 0 768 mkudffs 0xFF600 0xC8 0x2
Wed Nov 26 17:07:38 MST 2003
Linux 2.6.0-test10 i686
/home/pat
dd if=/dev/zero of=dd.bin bs=1M seek=0 count=768 2>/dev/null
-rw-rw-r--    1 pat      pat      805306368 Nov 26 17:12 dd.bin
mkudffs 1.0.0b2 for UDF FS 1.0.0-cvs, 2002/02/09
0
hexdump -C whd0.bin | head -3
00000000  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa  |................|
*
01ff0000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
hexdump -C whd1.bin | head -3
00000000  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa  |................|
*
02ffb000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
+++ 2.dmesg     2003-11-26 17:17:52.278145752 -0700
+logicalvol: FileSet found in LogicalVolDesc at block=24, partition=0
+UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 13358 already set
+UDF-fs DEBUG fs/udf/balloc.c:193:udf_bitmap_free_blocks: byte=40
+UDF-fs DEBUG fs/udf/balloc.c:192:udf_bitmap_free_blocks: bit 13358 already set
 
real    10m28.744s
user    0m7.642s
sys     0m10.885s
$



^ permalink raw reply	[flat|nested] 40+ messages in thread

* Re: zeroes read back more often than appended
@ 2003-11-20 16:41 Pat LaVarre
  2003-11-27  0:45 ` Pat LaVarre
  0 siblings, 1 reply; 40+ messages in thread
From: Pat LaVarre @ 2003-11-20 16:41 UTC (permalink / raw)
  To: linux-fsdevel

Offline recently I was reminded that the default marc archive view of
just the last month of linux-fsdevel does not know:

-----Forwarded Message-----

In helping, first we conjecture what may break, then we show what does
break, then we (discover and) explain how to fix it.  So far, with Linux
2.6 udf.ko, we have published some of what breaks.  We see the trivially
repeatable demo that:

"Try appending nonzero to multiple files in a round robin sequence, and
udf.ko reads back zero in place of the nonzero written.  mkfs in place
of mkudffs reads back only the nonzero written."

at:

http://marc.theaimsgroup.com/?l=linux-fsdevel&m=106676214111422

List: linux-fsdevel
Subject: Re: zeroes read back more often than appended
Date: 2003-10-21 18:44:54

Pat LaVarre



^ permalink raw reply	[flat|nested] 40+ messages in thread

end of thread, other threads:[~2003-12-11 18:42 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-07 19:02 zeroes read back more often than appended Pat LaVarre
2003-10-07 20:54 ` Pat LaVarre
2003-10-08  3:49 ` Ben Fennema
2003-10-08 16:41   ` Pat LaVarre
2003-10-08 16:47     ` editable udf metadata Pat LaVarre
2003-10-08 17:51       ` Pat LaVarre
2003-10-08 18:09         ` big-endian udfct_1_0r2 Pat LaVarre
2003-10-08 18:30           ` Matthew Wilcox
     [not found]             ` <3F8472FE.9040403@lougher.demon.co.uk>
2003-10-08 19:49               ` Matthew Wilcox
2003-10-08 20:43             ` Phillip Lougher
2003-10-21 21:54         ` editable udf metadata Pat LaVarre
2003-10-21 23:17           ` Pat LaVarre
2003-10-23 16:06             ` Pat LaVarre
2003-10-24 21:40               ` Pat LaVarre
2003-10-22  8:15           ` same page access Mark B
2003-10-22 11:21             ` Matthew Wilcox
2003-10-22 17:09               ` Mark B
2003-10-22 17:10                 ` Matthew Wilcox
2003-10-08 17:02     ` zeroes read back more often than appended Pat LaVarre
2003-10-08 17:06       ` toggling smp clears x86_mce_p4thermal of make xconfig Pat LaVarre
2003-10-08 17:21     ` zeroes read back more often than appended Pat LaVarre
2003-10-08 16:46   ` soft trace of read/write of drivers/block/loop.c Pat LaVarre
2003-10-08 20:32   ` zeroes read back more often than appended Pat LaVarre
2003-10-09 20:54   ` Pat LaVarre
2003-10-10  0:52     ` Pat LaVarre
2003-10-10 16:39       ` Pat LaVarre
2003-10-10 18:15         ` Pat LaVarre
2003-10-14  0:38           ` Pat LaVarre
2003-10-14  1:48             ` Pat LaVarre
2003-10-20 23:20               ` Pat LaVarre
2003-10-21 14:47                 ` Pat LaVarre
2003-10-21 16:46                   ` Pat LaVarre
2003-10-21 18:44                     ` Pat LaVarre
2003-10-23 18:52                     ` Pat LaVarre
2003-10-27 21:55                       ` Pat LaVarre
2003-11-20 16:41 Pat LaVarre
2003-11-27  0:45 ` Pat LaVarre
2003-11-28 18:20   ` Pat LaVarre
2003-11-28 18:29     ` Pat LaVarre
2003-12-11 18:42 Pat LaVarre

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.