Changeset View
Changeset View
Standalone View
Standalone View
head/sys/geom/mirror/g_mirror.h
Show First 20 Lines • Show All 142 Lines • ▼ Show 20 Lines | struct g_mirror_disk { | ||||
int d_state; /* Disk state. */ | int d_state; /* Disk state. */ | ||||
u_int d_priority; /* Disk priority. */ | u_int d_priority; /* Disk priority. */ | ||||
u_int load; /* Averaged queue length */ | u_int load; /* Averaged queue length */ | ||||
off_t d_last_offset; /* Last read offset */ | off_t d_last_offset; /* Last read offset */ | ||||
uint64_t d_flags; /* Additional flags. */ | uint64_t d_flags; /* Additional flags. */ | ||||
u_int d_genid; /* Disk's generation ID. */ | u_int d_genid; /* Disk's generation ID. */ | ||||
struct g_mirror_disk_sync d_sync;/* Sync information. */ | struct g_mirror_disk_sync d_sync;/* Sync information. */ | ||||
LIST_ENTRY(g_mirror_disk) d_next; | LIST_ENTRY(g_mirror_disk) d_next; | ||||
u_int d_init_ndisks; /* Initial number of mirror components */ | |||||
uint32_t d_init_slice; /* Initial slice size */ | |||||
uint8_t d_init_balance;/* Initial balance */ | |||||
uint64_t d_init_mediasize;/* Initial mediasize */ | |||||
}; | }; | ||||
#define d_name d_consumer->provider->name | #define d_name d_consumer->provider->name | ||||
#define G_MIRROR_EVENT_DONTWAIT 0x1 | #define G_MIRROR_EVENT_DONTWAIT 0x1 | ||||
#define G_MIRROR_EVENT_WAIT 0x2 | #define G_MIRROR_EVENT_WAIT 0x2 | ||||
#define G_MIRROR_EVENT_DEVICE 0x4 | #define G_MIRROR_EVENT_DEVICE 0x4 | ||||
#define G_MIRROR_EVENT_DONE 0x8 | #define G_MIRROR_EVENT_DONE 0x8 | ||||
struct g_mirror_event { | struct g_mirror_event { | ||||
▲ Show 20 Lines • Show All 356 Lines • Show Last 20 Lines |