Files
mirror_zfs/include/sys
Rob Norris d54d0fff39 dnode: allow storage class to be overridden by object type
spa_preferred_class() selects a storage class based on (among other
things) the DMU object type. This only works for old-style object types
that match only one specific kind of thing. For DMU_OTN_ types we need
another way to signal the storage class.

This commit allows the object type to be overridden in the IO policy for
the purposes of choosing a storage class. It then adds the ability to
set the storage type on a dnode hold, such that all writes generated
under that hold will get it.

This method has two shortcomings:

- it would be better if we could "name" a set of storage class
  preferences rather than it being implied by the object type.
- it would be better if this info were stored in the dnode on disk.

In the absence of those things, this seems like the smallest possible
change.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Sponsored-by: Klara, Inc.
Sponsored-by: iXsystems, Inc.
Closes #15894
2024-07-29 17:05:41 -07:00
..
2024-05-31 15:13:39 -07:00
2024-02-08 09:19:52 -08:00
2022-05-10 10:18:51 -07:00
2022-05-25 09:18:49 -07:00
2024-03-25 16:50:35 -07:00
2021-06-07 09:02:47 -07:00
2023-01-10 13:39:22 -08:00
2024-07-29 14:48:12 -07:00
2023-10-24 11:00:07 -07:00
2023-03-14 15:25:50 -07:00
2023-05-09 09:03:10 -07:00
2017-10-11 16:54:48 -04:00
2023-09-01 18:00:30 -07:00
2024-04-09 16:23:19 -07:00
2019-06-19 09:48:12 -07:00
2022-07-11 14:16:13 -07:00
2024-05-31 15:13:30 -07:00
2024-05-31 15:13:16 -07:00
2024-07-25 09:47:36 -07:00
2024-07-29 17:05:08 -07:00
2023-11-08 10:19:41 -08:00
2023-11-08 10:19:41 -08:00
2018-02-08 15:28:18 -08:00
2024-05-29 10:49:11 -07:00
2024-04-22 09:42:38 -07:00
2022-06-29 14:08:54 -07:00
2020-07-03 11:05:50 -07:00
2023-01-05 09:31:55 -08:00