Re: NetBSD & disks with 4K sector size

2023-07-20 Thread Greg Troxel
mlel...@serpens.de (Michael van Elst) writes: > g...@lexort.com (Greg Troxel) writes: > >>mlel...@serpens.de (Michael van Elst) writes: >>> The xbd driver lies about the sector size and always reports 512byte >>> sectors. If you pass through a 4k sector host disk, this make some >>> I/O

Re: NetBSD & disks with 4K sector size

2023-07-20 Thread Michael van Elst
g...@lexort.com (Greg Troxel) writes: >mlel...@serpens.de (Michael van Elst) writes: >> The xbd driver lies about the sector size and always reports 512byte >> sectors. If you pass through a 4k sector host disk, this make some >> I/O operations fail. >What do you suggest we do? I suggested to

Re: NetBSD & disks with 4K sector size

2023-07-20 Thread Greg Troxel
mlel...@serpens.de (Michael van Elst) writes: > g...@lexort.com (Greg Troxel) writes: > >>With any luck, this is supported and the xbd driver in NetBSD is just >>not noticing the sector size variable and it's a fairly small matter of >>programming. > > The xbd driver lies about the sector size

Re: NetBSD & disks with 4K sector size

2023-07-20 Thread Michael van Elst
g...@lexort.com (Greg Troxel) writes: >With any luck, this is supported and the xbd driver in NetBSD is just >not noticing the sector size variable and it's a fairly small matter of >programming. The xbd driver lies about the sector size and always reports 512byte sectors. If you pass through a

Re: NetBSD & disks with 4K sector size

2023-07-20 Thread Michael van Elst
li...@nerdbynature.de (Christian Kujau) writes: >So, my question is: does NetBSD work with 4k sector size disks? I found >two[1][2] threads from 11 years ago, but nothing conclusive and with >somewhat conflicting[3][4] information. The NetBSD Xen PV xbd device lies about sector

Re: NetBSD & disks with 4K sector size

2023-07-20 Thread Manuel Bouyer
On Thu, Jul 20, 2023 at 10:16:16AM -0400, Greg Troxel wrote: > Probably best to use port-xen now that we think it's a xen thing. I > would suggest investigating everything suggested to you and then sending > a new message based on your future understanding to port-xen. > > 1) I am unclear on if

Re: NetBSD & disks with 4K sector size

2023-07-20 Thread Greg Troxel
Probably best to use port-xen now that we think it's a xen thing. I would suggest investigating everything suggested to you and then sending a new message based on your future understanding to port-xen. 1) I am unclear on if the xbd abstraction has the concept of 4K sizes, and if so how that is

Re: NetBSD & disks with 4K sector size

2023-07-20 Thread Christian Kujau
On Thu, 20 Jul 2023, Jonathan A. Kollasch wrote: > On Thu, Jul 20, 2023 at 03:56:04PM +0200, Christian Kujau wrote: > > So, my question is: does NetBSD work with 4k sector size disks? I found > > two[1][2] threads from 11 years ago, but nothing conclusive and with > > Ye

Re: NetBSD & disks with 4K sector size

2023-07-20 Thread Jonathan A. Kollasch
On Thu, Jul 20, 2023 at 03:56:04PM +0200, Christian Kujau wrote: > So, my question is: does NetBSD work with 4k sector size disks? I found > two[1][2] threads from 11 years ago, but nothing conclusive and with Yes, but I imagine it's not been tried with xbd(4) before. Only wd(4)

NetBSD & disks with 4K sector size

2023-07-20 Thread Christian Kujau
--getdiskseq - "get disk sequence number" This all looks fine, 8 GB is the correct size here and both --getsz and --getsize64 add up. But maybe that 4096 sectory size is what throws NetBSD off. So, my question is: does NetBSD work with 4k sector size disks? I found two[1][2]