On Fri, Apr 22, 2011 at 04:14:11PM +0200, Tasmanian Devil wrote:

> Hello, misc!
> 
> I use a svnd-based, encrypted disk with a few partitions on it since
> more than a year, which used to work just fine. But with the snapshot
> from April 14 and also with the latest snapshot from April 21 I can
> only mount one partition at a time now. Do I do something wrong, or is
> this a bug? Or is this an expected result of the recent vnd/svnd
> changes and I need to change the way I use vnd/svnd?
> 
> Thank you for your help! Details below.

Please report to bugs. Not all developers read misc.

        -Otto

> 
> Tas.
> 
> 
> I use /dev/wd0l on the physical harddisk as storage space. To open the
> encrypted volume, I copy and paste all the commands from a text file.
> I open the volume with (with the correct /tmp/foo file in place):
> 
> vnconfig -c -K 99999 -S /tmp/foo svnd3 /dev/wd0l
> 
> snvd3 looks like this:
> 
> 
> # fdisk svnd3
> Disk: svnd3     geometry: 1230051/1/100 [123005169 Sectors]
> Offset: 0       Signature: 0xAA55
>             Starting         Ending         LBA Info:
>  #: id      C   H   S -      C   H   S [       start:        size ]
> -------------------------------------------------------------------------------
>  0: 00      0   0   0 -      0   0   0 [           0:           0 ] unused
>  1: 00      0   0   0 -      0   0   0 [           0:           0 ] unused
>  2: 00      0   0   0 -      0   0   0 [           0:           0 ] unused
> *3: A6      1   0   1 - 1230050   0 100 [         100:   123005000 ]
> OpenBSD
> # disklabel svnd3
> # /dev/rsvnd3c:
> type: vnd
> disk: vnd device
> label: fictitious
> duid: 79c8276b51852fc4
> flags:
> bytes/sector: 512
> sectors/track: 100
> tracks/cylinder: 1
> sectors/cylinder: 100
> cylinders: 335543
> total sectors: 123005169
> boundstart: 100
> boundend: 123005100
> drivedata: 0
> 
> 16 partitions:
> #                size           offset  fstype [fsize bsize  cpg]
>   a:          9586800              100  4.2BSD   2048 16384    1
>   c:        123005169                0  unused
>   d:          9586800          9586900  4.2BSD   2048 16384    1
>   e:        103831400         19173700  4.2BSD   2048 16384 38128
> 
> 
> Partitions are fine:
> 
> # fsck /dev/svnd3{a,d,e}
> ** /dev/rsvnd3a
> ** File system is clean; not checking
> ** /dev/rsvnd3d
> ** File system is clean; not checking
> ** /dev/rsvnd3e
> ** File system is clean; not checking
> 
> 
> I used to mount all three partitions with:
> 
> mount -o nodev,nosuid /dev/svnd3a /data/1
> mount -o nodev,nosuid /dev/svnd3d /data/2
> mount -o nodev,nosuid /dev/svnd3e /data/3
> 
> That worked fine so far and all three partitions got mounted. But now
> I can still mount all partitions, but only one at a time. With the
> commands from above I get:
> 
> # mount -o nodev,nosuid /dev/svnd3a /data/1
> # mount -o nodev,nosuid /dev/svnd3d /data/2
> mount_ffs: /dev/svnd3d on /data/2: Device busy
> # mount -o nodev,nosuid /dev/svnd3e /data/3
> mount_ffs: /dev/svnd3e on /data/3: Device busy
> 
> Only /data/1 gets mounted. To mount the other ones, I first need to
> umount  /data/1 now.
> 
> 
> # dmesg
> OpenBSD 4.9-current (GENERIC.MP) #81: Thu Apr 21 00:10:03 MDT 2011
>     dera...@i386.openbsd.org:/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,ACPI,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,ACPI,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

Reply via email to