On Tue, Jan 08, 2013 at 08:55:48PM +0100, Martijn van Duren wrote: > Hello bugs@, > > My sendbug(8)-repport failed to send, so here's the content copied by > hand. My apologies for any possible missing headers. > > >Synopsis: ext2fs returns EINVAL errors upon read request halfway > through an undefined subset of files. > >Category: ufs/ext2fs > >Environment: > System : OpenBSD 5.2 > Details : OpenBSD 5.2 (GENERIC) #0: Wed Nov 28 21:57:04 CET 2012 > > [email protected]:/usr/src/sys/arch/i386/compile/GENERIC > > Architecture: OpenBSD.i386 > Machine : i386 > >Description: > I moved my harddrive from my old sparc64 box with Debian6.0 to my > "new" i386 OpenBSD box. The format format information of my data
As a general rule filesystems are not portable across architectures, especially when changing endian and going from 64 to 32 bits. Not saying this is the problem here, but I wouldn't be surprised if it were. .... Ken > partition is as followed: > tune2fs 1.41.4 (27-Jan-2009) > Filesystem volume name: <none> > Last mounted on: <not available> > Filesystem UUID: 50b1441c-6e8a-4fac-b37c-e0fab1b86c46 > Filesystem magic number: 0xEF53 > Filesystem revision #: 1 (dynamic) > Filesystem features: has_journal ext_attr resize_inode dir_index > filetype sparse_super large_file > Filesystem flags: signed_directory_hash > Default mount options: (none) > Filesystem state: clean > Errors behavior: Continue > Filesystem OS type: Linux > Inode count: 122101760 > Block count: 488378000 > Reserved block count: 24418900 > Free blocks: 61033381 > Free inodes: 121917899 > First block: 0 > Block size: 4096 > Fragment size: 4096 > Reserved GDT blocks: 907 > Blocks per group: 32768 > Fragments per group: 32768 > Inodes per group: 8192 > Inode blocks per group: 512 > Filesystem created: Fri Feb 19 14:01:32 2010 > Last mount time: Sun Dec 30 14:35:10 2012 > Last write time: Sat Jan 5 12:34:36 2013 > Mount count: 0 > Maximum mount count: 28 > Last checked: Sat Jan 5 12:34:36 2013 > Check interval: 15552000 (6 months) > Next check after: Thu Jul 4 13:34:36 2013 > Reserved blocks uid: 0 (user root) > Reserved blocks gid: 0 (group wheel) > First inode: 11 > Inode size: 256 > Required extra isize: 28 > Desired extra isize: 28 > Journal inode: 8 > Default directory hash: half_md4 > Directory Hash Seed: db3f8996-b448-256b-34c4-c8bf06393645 > Journal backup: inode blocks > > While moving my data from my ext3 filesystem (mounted via mount_ext2fs > without additional options) to my FFS partition I noticed some files > failed. With some test-program I noticed that the the beginning of the > file is read correct. All the files are read correctly from other > Debian-based (and I assume other Linux based) systems. > > >How-To-Repeat: > There is no noticable difference between filetype or filesize to > determine what causes the error to occur. > >Fix: > I don't have the skills to debug a filesystem driver, but I am > willing to grant access to one of the developers. > > > dmesg: > OpenBSD 5.2 (GENERIC) #0: Wed Nov 28 21:57:04 CET 2012 > [email protected]:/usr/src/sys/arch/i386/compile/GENERIC > cpu0: Intel(R) Celeron(R) CPU 2.53GHz ("GenuineIntel" 686-class) 2.54 > GHz > cpu0: > FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,CNXT-ID,xTPR > real mem = 1274277888 (1215MB) > avail mem = 1242603520 (1185MB) > mainbus0 at root > bios0 at mainbus0: AT/286+ BIOS, date 07/24/06, BIOS32 rev. 0 @ 0xf0010, > SMBIOS rev. 2.3 @ 0xfb2b0 (45 entries) > bios0: vendor American Megatrends Inc. version "080012" date 07/24/2006 > bios0: ASUSTeK Computer INC. P4V8X-MX > acpi0 at bios0: rev 0 > acpi0: sleep states S0 S1 S3 S4 S5 > acpi0: tables DSDT FACP APIC OEMB > acpi0: wakeup devices PCI0(S4) PS2K(S4) PS2M(S4) UAR1(S4) MC97(S4) > USB1(S4) USB2(S4) USB3(S4) USB4(S4) EHCI(S4) ILAN(S4) > acpitimer0 at acpi0: 3579545 Hz, 24 bits > acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat > cpu0 at mainbus0: apid 0 (boot processor) > cpu0: apic clock running at 133MHz > ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 3, 24 pins > acpiprt0 at acpi0: bus 0 (PCI0) > acpiprt1 at acpi0: bus 1 (P0P1) > acpicpu0 at acpi0 > acpibtn0 at acpi0: PWRB > bios0: ROM list: 0xc0000/0x8200 0xc8800/0x5000! > pci0 at mainbus0 bus 0: configuration mode 1 (bios) > pchb0 at pci0 dev 0 function 0 "VIA CN700 Host" rev 0x00 > viaagp0 at pchb0: v3 > agp0 at viaagp0: aperture at 0xf8000000, size 0xf000000 > pchb1 at pci0 dev 0 function 1 "VIA CN700 Host" rev 0x00 > pchb2 at pci0 dev 0 function 2 "VIA CN700 Host" rev 0x00 > pchb3 at pci0 dev 0 function 3 "VIA PT890 Host" rev 0x00 > pchb4 at pci0 dev 0 function 4 "VIA CN700 Host" rev 0x00 > pchb5 at pci0 dev 0 function 7 "VIA CN700 Host" rev 0x00 > ppb0 at pci0 dev 1 function 0 "VIA VT8377 AGP" rev 0x00 > pci1 at ppb0 bus 1 > vga1 at pci1 dev 0 function 0 "VIA S3 Unichrome PRO IGP" rev 0x01 > wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) > wsdisplay0: screen 1-5 added (80x25, vt100 emulation) > pciide0 at pci0 dev 15 function 0 "VIA VT6420 SATA" rev 0x80: DMA > pciide0: using apic 1 int 20 for native-PCI interrupt > wd0 at pciide0 channel 0 drive 0: <Hitachi HDS722020ALA330> > wd0: 16-sector PIO, LBA48, 1907729MB, 3907029168 sectors > wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6 > wd1 at pciide0 channel 1 drive 0: <ST3000DM001-9YN166> > wd1: 16-sector PIO, LBA48, 2861588MB, 5860533168 sectors > wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 6 > pciide1 at pci0 dev 15 function 1 "VIA VT82C571 IDE" rev 0x06: ATA133, > channel 0 configured to compatibility, channel 1 configured to > compatibility > wd2 at pciide1 channel 0 drive 0: <HDS728080PLAT20> > wd2: 16-sector PIO, LBA48, 74520MB, 152617501 sectors > wd2(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 6 > atapiscsi0 at pciide1 channel 1 drive 0 > scsibus0 at atapiscsi0: 2 targets > cd0 at scsibus0 targ 0 lun 0: <TSSTcorp, CDW/DVD SH-M522C, TS03> ATAPI > 5/cdrom removable > cd0(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 2 > uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x81: apic 1 int > 21 > uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x81: apic 1 int > 21 > uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x81: apic 1 int > 21 > uhci3 at pci0 dev 16 function 3 "VIA VT83C572 USB" rev 0x81: apic 1 int > 21 > ehci0 at pci0 dev 16 function 4 "VIA VT6202 USB" rev 0x86: apic 1 int 21 > usb0 at ehci0: USB revision 2.0 > uhub0 at usb0 "VIA EHCI root hub" rev 2.00/1.00 addr 1 > viapm0 at pci0 dev 17 function 0 "VIA VT8237 ISA" rev 0x00: SMI > iic0 at viapm0 > spdmem0 at iic0 addr 0x50: 256MB DDR SDRAM non-parity PC3200CL2.5 > spdmem1 at iic0 addr 0x51: 1GB DDR SDRAM non-parity PC3200CL3.0 > auvia0 at pci0 dev 17 function 5 "VIA VT8233 AC97" rev 0x60: apic 1 int > 22 > ac97: codec id 0x434d4983 (C-Media Electronics CMI9761A+) > audio0 at auvia0 > vr0 at pci0 dev 18 function 0 "VIA RhineII-2" rev 0x78: apic 1 int 23, > address 00:1b:fc:99:fc:1e > ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 10: OUI > 0x004063, model 0x0032 > usb1 at uhci0: USB revision 1.0 > uhub1 at usb1 "VIA UHCI root hub" rev 1.00/1.00 addr 1 > usb2 at uhci1: USB revision 1.0 > uhub2 at usb2 "VIA UHCI root hub" rev 1.00/1.00 addr 1 > usb3 at uhci2: USB revision 1.0 > uhub3 at usb3 "VIA UHCI root hub" rev 1.00/1.00 addr 1 > usb4 at uhci3: USB revision 1.0 > uhub4 at usb4 "VIA UHCI root hub" rev 1.00/1.00 addr 1 > isa0 at mainbus0 > isadma0 at isa0 > com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo > pckbc0 at isa0 port 0x60/5 > pckbd0 at pckbc0 (kbd slot) > pckbc0: using irq 1 for kbd slot > wskbd0 at pckbd0: console keyboard, using wsdisplay0 > pcppi0 at isa0 port 0x61 > spkr0 at pcppi0 > lpt0 at isa0 port 0x378/4 irq 7 > wbsio0 at isa0 port 0x2e/2: W83697HF rev 0x12 > lm1 at wbsio0 port 0x290/8: W83697HF > npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 > fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 > mtrr: Pentium Pro MTRR support > umass0 at uhub4 port 2 configuration 1 interface 0 "Generic USB Storage > Device" rev 2.00/1.8a addr 2 > umass0: using SCSI over Bulk-Only > scsibus1 at umass0: 2 targets, initiator 0 > sd0 at scsibus1 targ 1 lun 0: <Generic, USB Storage-CFC, I19A> SCSI0 > 0/direct removable > sd1 at scsibus1 targ 1 lun 1: <Generic, USB Storage-SDC, I19A> SCSI0 > 0/direct removable > sd2 at scsibus1 targ 1 lun 2: <Generic, USB Storage-SMC, I19A> SCSI0 > 0/direct removable > sd3 at scsibus1 targ 1 lun 3: <Generic, USB Storage-MSC, I19A> SCSI0 > 0/direct removable > vscsi0 at root > scsibus2 at vscsi0: 256 targets > softraid0 at root > scsibus3 at softraid0: 256 targets > root on wd2a (08c480ac0d0aa36e.a) swap on wd2b dump on wd2b > > usbdevs: > Controller /dev/usb0: > addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), > VIA(0x1106), rev 1.00 > port 1 powered > port 2 powered > port 3 powered > port 4 powered > port 5 powered > port 6 powered > port 7 powered > port 8 powered > Controller /dev/usb1: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > VIA(0x1106), rev 1.00 > port 1 powered > port 2 powered > Controller /dev/usb2: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > VIA(0x1106), rev 1.00 > port 1 powered > port 2 powered > Controller /dev/usb3: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > VIA(0x1106), rev 1.00 > port 1 powered > port 2 powered > Controller /dev/usb4: > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), > VIA(0x1106), rev 1.00 > port 1 powered > port 2 addr 2: full speed, power 500 mA, config 1, USB Storage > Device(0x3260), Generic(0x0aec), rev 1.8a, iSerialNumber > 0AEC326000001A000
