On Sunday 24 April 2011, Tasmanian Devil wrote:
> To: [email protected]
> Subject: only one partition on svnd-based disk mountable
> From: [email protected]
> Cc:
> Reply-To: [email protected]
>
> >Synopsis:      only one partition on svnd-based disk mountable
> >Category:      system
> >Environment:
>
>         System      : OpenBSD 4.9
>         Details     : OpenBSD 4.9-current (GENERIC.MP) #81: Thu Apr 21
> 00:10:03 MDT 2011
>
> [email protected]:/usr/src/sys/arch/i386/compile/GENERIC.MP
>
>         Architecture: OpenBSD.i386
>         Machine     : i386
>
> >Description:
>
> With 4.9-current from April 15 and from April 21, only one of the
> partitions on a svnd-based disk can be mounted at a time. With 4.9
> from March 2, it is no problem to mount all such partitions at the
> same time, so this seems to be an regression.
>
> >How-To-Repeat:
>
> Create a file, configure vnode disk based on it, fdisk, create two
> partitions with disklabel, newfs both partitions, try to mount both
> partitions:
>
> # dd if=/dev/zero of=/tmp/data bs=1m count=10
> 10+0 records in
> 10+0 records out
> 10485760 bytes transferred in 0.037 secs (277856802 bytes/sec)
> # vnconfig svnd0 /tmp/data
> # fdisk -iy svnd0
> Warning CHS values out of bounds only saving LBA values
> Writing MBR at offset 0.
> # disklabel -E svnd0
> Label editor (enter '?' for help at any prompt)
>
> > a d
>
> offset: [128]
> size: [20272] 5m
> Rounding to cylinder: 10272
> FS type: [4.2BSD]
>
> > a e
>
> offset: [10400]
> size: [10000]
> FS type: [4.2BSD]
>
> > q
>
> Write new label?: [y] y
> # newfs /dev/rsvnd0d
> newfs: reduced number of fragments per cylinder group from 640 to 632
> to enlarge last cylinder group
> /dev/rsvnd0d: 5.0MB in 10272 sectors of 512 bytes
> 5 cylinder groups of 1.23MB, 79 blocks, 256 inodes each
> super-block backups (for fsck -b #) at:
>  32, 2560, 5088, 7616, 10144,
> # newfs /dev/rsvnd0e
> /dev/rsvnd0e: 4.9MB in 9984 sectors of 512 bytes
> 4 cylinder groups of 1.22MB, 78 blocks, 256 inodes each
> super-block backups (for fsck -b #) at:
>  32, 2528, 5024, 7520,
> # mkdir /tmp/data{1,2}
> # mount -o nodev,nosuid /dev/svnd0d /tmp/data1
> # mount -o nodev,nosuid /dev/svnd0e /tmp/data2
> mount_ffs: /dev/svnd0e on /tmp/data2: Device busy
> # mount | grep data
> /dev/svnd0d on /tmp/data1 type ffs (local, nodev, nosuid)
> #
>
> With the same commands on 4.9 from March 2, also the second partition
> mounts fine without error.

This was caused by a bug in the vnd(4) code that prevented multiple openings, 
even for different partitions. This should be resolved in r1.112 of 
sys/dev/vnd.c.

> >Fix:
>
> No workaround known
>
> SENDBUG: dmesg, pcidump, acpidump and usbdevs are attached.
> SENDBUG: Feel free to delete or use the -D flag if they contain
> sensitive information.
>
> dmesg:
> OpenBSD 4.9-current (GENERIC.MP) #81: Thu Apr 21 00:10:03 MDT 2011
>     [email protected]:/usr/src/sys/arch/i386/compile/GENERIC.MP
> cpu0: Genuine Intel(R) CPU 1400 @ 1.83GHz ("GenuineIntel" 686-class) 1.84
> GHz cpu0:
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACP
>I,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM real mem 
> = 2114367488 (2016MB)
> avail mem = 2069610496 (1973MB)
> mainbus0 at root
> bios0 at mainbus0: AT/286+ BIOS, date 07/29/05, SMBIOS rev. 2.4 @
> 0xe73f0 (39 entries)
> bios0: vendor Apple Computer, Inc. version
> "MM11.88Z.0055.B08.0610121326" date 10/12/06
> bios0: Apple Computer, Inc. Macmini1,1
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP HPET APIC MCFG ASF! SBST ECDT SSDT SSDT SSDT
> acpi0: wakeup devices PXS1(S4) PXS2(S4) USB1(S3) USB2(S3) USB3(S3)
> USB4(S3) USB7(S3)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpihpet0 at acpi0: 14318179 Hz
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: apic clock running at 166MHz
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: Genuine Intel(R) CPU 1400 @ 1.83GHz ("GenuineIntel" 686-class) 1.84
> GHz cpu1:
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACP
>I,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM ioapic0
> at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
> ioapic0: misconfigured as apic 0, remapped to apid 1
> acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
> acpiec0 at acpi0acpiec _REG failed, broken BIOS
>
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 1 (RP01)
> acpiprt2 at acpi0: bus 2 (RP02)
> acpiprt3 at acpi0: bus 3 (PCIB)
> acpicpu0 at acpi0: C2, C1, PSS
> acpicpu1 at acpi0: C2, C1, PSS
> acpibtn0 at acpi0: PWRB
> acpivideo0 at acpi0: GFX0
> bios0: ROM list: 0xc0000/0xe600!
> cpu0: Enhanced SpeedStep 1834 MHz: speeds: 1833, 1667, 1500, 1333, 1000 MHz
> memory map conflict 0xe00f8000/0x1000
> memory map conflict 0xfed1c000/0x4000
> memory map conflict 0xfffb0000/0x30000
> pci0 at mainbus0 bus 0: configuration mode 1 (bios)
> pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
> vga1 at pci0 dev 2 function 0 "Intel 82945GM Video" rev 0x03
> Wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> intagp0 at vga1
> agp0 at intagp0: aperture at 0x80000000, size 0x10000000
> inteldrm0 at vga1: apic 1 int 16 (irq 10)
> drm0 at inteldrm0
> vendor "Intel", unknown product 0x27a3 (class DASP subclass Time and
> Frequency, rev 0x03) at pci0 dev 7 function 0 not configured
> azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02:
> apic 1 int 22 (irq 11)
> azalia0: codecs: Sigmatel STAC9220/1
> audio0 at azalia0
> ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 1
> int 17 (irq 11)
> pci1 at ppb0 bus 1
> mskc0 at pci1 dev 0 function 0 "Marvell Yukon 88E8053" rev 0x22,
> Yukon-2 EC rev. A3 (0x2): apic 1 int 16 (irq 11)
> msk0 at mskc0 port A: address 00:16:cb:a7:46:69
> eephy0 at msk0 phy 0: 88E1111 Gigabit PHY, rev. 2
> ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: apic 1
> int 16 (irq 10)
> pci2 at ppb1 bus 2
> ath0 at pci2 dev 0 function 0 "Atheros AR5424" rev 0x01: apic 1 int 17 (irq
> 11) ath0: AR5424 10.3 phy 6.1 rf 10.2, WORAW, address 00:17:f2:4d:19:ee
> uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 1 int 21
> (irq 11)
> uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 1
> int 19 (irq 11)
> uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 1
> int 18 (irq 11)
> uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 1
> int 16 (irq 10)
> ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 1
> int 21 (irq 11)
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> ppb2 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2
> pci3 at ppb2 bus 3
> "AT&T/Lucent FW322 1394" rev 0x61 at pci3 dev 3 function 0 not configured
> ichpcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x02: PM
> disabled pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x02:
> DMA, channel 0 configured to compatibility, channel 1 configured to
> compatibility
> atapiscsi0 at pciide0 channel 0 drive 0
> scsibus0 at atapiscsi0: 2 targets
> cd0 at scsibus0 targ 0 lun 0: <MATSHITA, DVD-R UJ-846, FM3J> ATAPI
> 5/cdrom removable
> cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
> pciide0: channel 1 disabled (no drives)
> pciide1 at pci0 dev 31 function 2 "Intel 82801GBM SATA" rev 0x02: DMA,
> channel 0 configured to native-PCI, channel 1 configured to native-PCI
> pciide1: using apic 1 int 19 (irq 11) for native-PCI interrupt
> wd0 at pciide1 channel 0 drive 1: <Hitachi HTS541210H9SA00>
> wd0: 16-sector PIO, LBA48, 95396MB, 195371568 sectors
> wd0(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 5
> ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x02: apic
> 1 int 19 (irq 11)
> iic0 at ichiic0
> spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM
> spdmem1 at iic0 addr 0x52: 1GB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM
> usb1 at uhci0: USB revision 1.0
> uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb2 at uhci1: USB revision 1.0
> uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb3 at uhci2: USB revision 1.0
> uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb4 at uhci3: USB revision 1.0
> uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> isa0 at ichpcib0
> isadma0 at isa0
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
> mtrr: Pentium Pro MTRR support
> uhidev0 at uhub4 port 1 configuration 1 interface 0 "Apple Computer
> ADB device" rev 2.00/19.65 addr 2
> uhidev0: iclass 3/1
> ukbd0 at uhidev0: 8 modifier keys, 6 key codes
> wskbd0 at ukbd0: console keyboard, using wsdisplay0
> uhidev1 at uhub4 port 1 configuration 1 interface 1 "Apple Computer
> ADB device" rev 2.00/19.65 addr 2
> uhidev1: iclass 3/1
> ums0 at uhidev1: 5 buttons
> wsmouse0 at ums0 mux 0
> uhidev2 at uhub4 port 2 configuration 1 interface 0 "Apple Computer,
> Inc. IR Receiver" rev 2.00/1.10 addr 3
> uhidev2: iclass 3/0, 38 report ids
> uhid0 at uhidev2 reportid 36: input=4, output=0, feature=0
> uhid1 at uhidev2 reportid 37: input=4, output=0, feature=0
> uhid2 at uhidev2 reportid 38: input=4, output=0, feature=0
> vscsi0 at root
> scsibus1 at vscsi0: 256 targets
> softraid0 at root
> root on wd0a swap on wd0b dump on wd0b


-- 

    "Reason is not automatic. Those who deny it cannot be conquered by it.
     Do not count on them. Leave them alone." -- Ayn Rand

Reply via email to