28c28
< .\" $FreeBSD: head/share/man/man9/disk.9 188917 2009-02-22 13:38:16Z trasz $
---
> .\" $FreeBSD: head/share/man/man9/disk.9 237518 2012-06-24 04:29:03Z ken $
147a148,157
> .It Vt "disk_getattr_t *" Va d_getattr
> Optional: if this method is provided, it gives the disk driver the
> opportunity to override the default GEOM response to BIO_GETATTR requests.
> This function should return -1 if the attribute is not handled, 0 if the
> attribute is handled, or an errno to be passed to g_io_deliver().
> .It Vt "disk_gone_t *" Va d_gone
> Optional: if this method is provided, it will be called after disk_gone()
> is called, once GEOM has finished its cleanup process.
> Once this callback is called, it is safe for the disk driver to free all of
> its resources, as it will not be receiving further calls from GEOM.
183c193,209
< This field can and should be used to store disk's serial number.
---
> This field can and should be used to store disk's serial number if the
> d_getattr method described above isn't implemented, or if it does not
> support the GEOM::ident attribute.
> .It Vt char Va d_descr[DISK_IDENT_SIZE]
> This field can be used to store the disk vendor and product description.
> .It Vt uint16_t Va d_hba_vendor
> This field can be used to store the PCI vendor ID for the HBA connected to
> the disk.
> .It Vt uint16_t Va d_hba_device
> This field can be used to store the PCI device ID for the HBA connected to
> the disk.
> .It Vt uint16_t Va d_hba_subvendor
> This field can be used to store the PCI subvendor ID for the HBA connected to
> the disk.
> .It Vt uint16_t Va d_hba_subdevice
> This field can be used to store the PCI subdevice ID for the HBA connected to
> the disk.
< .\" $FreeBSD: head/share/man/man9/disk.9 188917 2009-02-22 13:38:16Z trasz $
---
> .\" $FreeBSD: head/share/man/man9/disk.9 237518 2012-06-24 04:29:03Z ken $
147a148,157
> .It Vt "disk_getattr_t *" Va d_getattr
> Optional: if this method is provided, it gives the disk driver the
> opportunity to override the default GEOM response to BIO_GETATTR requests.
> This function should return -1 if the attribute is not handled, 0 if the
> attribute is handled, or an errno to be passed to g_io_deliver().
> .It Vt "disk_gone_t *" Va d_gone
> Optional: if this method is provided, it will be called after disk_gone()
> is called, once GEOM has finished its cleanup process.
> Once this callback is called, it is safe for the disk driver to free all of
> its resources, as it will not be receiving further calls from GEOM.
183c193,209
< This field can and should be used to store disk's serial number.
---
> This field can and should be used to store disk's serial number if the
> d_getattr method described above isn't implemented, or if it does not
> support the GEOM::ident attribute.
> .It Vt char Va d_descr[DISK_IDENT_SIZE]
> This field can be used to store the disk vendor and product description.
> .It Vt uint16_t Va d_hba_vendor
> This field can be used to store the PCI vendor ID for the HBA connected to
> the disk.
> .It Vt uint16_t Va d_hba_device
> This field can be used to store the PCI device ID for the HBA connected to
> the disk.
> .It Vt uint16_t Va d_hba_subvendor
> This field can be used to store the PCI subvendor ID for the HBA connected to
> the disk.
> .It Vt uint16_t Va d_hba_subdevice
> This field can be used to store the PCI subdevice ID for the HBA connected to
> the disk.