Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/openzfs/include/sys/spa.h
Show First 20 Lines • Show All 717 Lines • ▼ Show 20 Lines | typedef enum spa_mode { | ||||
SPA_MODE_READ = 1, | SPA_MODE_READ = 1, | ||||
SPA_MODE_WRITE = 2, | SPA_MODE_WRITE = 2, | ||||
} spa_mode_t; | } spa_mode_t; | ||||
/* | /* | ||||
* Send TRIM commands in-line during normal pool operation while deleting. | * Send TRIM commands in-line during normal pool operation while deleting. | ||||
* OFF: no | * OFF: no | ||||
* ON: yes | * ON: yes | ||||
* NB: IN_FREEBSD_BASE is defined within the FreeBSD sources. | * NB: IN_BASE is defined within the FreeBSD sources. | ||||
*/ | */ | ||||
typedef enum { | typedef enum { | ||||
SPA_AUTOTRIM_OFF = 0, /* default */ | SPA_AUTOTRIM_OFF = 0, /* default */ | ||||
SPA_AUTOTRIM_ON, | SPA_AUTOTRIM_ON, | ||||
#ifdef IN_FREEBSD_BASE | #ifdef IN_BASE | ||||
SPA_AUTOTRIM_DEFAULT = SPA_AUTOTRIM_ON, | SPA_AUTOTRIM_DEFAULT = SPA_AUTOTRIM_ON, | ||||
#else | #else | ||||
SPA_AUTOTRIM_DEFAULT = SPA_AUTOTRIM_OFF, | SPA_AUTOTRIM_DEFAULT = SPA_AUTOTRIM_OFF, | ||||
#endif | #endif | ||||
} spa_autotrim_t; | } spa_autotrim_t; | ||||
/* | /* | ||||
* Reason TRIM command was issued, used internally for accounting purposes. | * Reason TRIM command was issued, used internally for accounting purposes. | ||||
▲ Show 20 Lines • Show All 504 Lines • Show Last 20 Lines |