Lines Matching refs:disk
539 ex_to_string = "peer unreachable, doing nothing since disk != UpToDate";
547 mask.disk = D_MASK;
548 val.disk = D_OUTDATED;
654 (device->state.disk < D_UP_TO_DATE &&
655 device->state.disk >= D_INCONSISTENT)) {
656 mask.disk = D_MASK;
657 val.disk = D_UP_TO_DATE;
663 device->state.disk == D_CONSISTENT && mask.pdsk == 0) {
667 val.disk = D_UP_TO_DATE;
668 mask.disk = D_MASK;
807 * the on disk meta data.
893 * R_PRIMARY D_INCONSISTENT, and peer's disk is unreachable
894 * (not connected, or bad/no disk on peer):
948 /* We may change the on-disk offsets of our meta data below. Lock out
1038 * to move the on-disk location of the activity log ringbuffer.
1043 /* mark current on-disk bitmap and activity log as unreliable */
1057 /* on-disk bitmap and activity log is authoritative again
1096 sector_t p_size = device->p_size; /* partner's disk size. */
1130 drbd_err(device, "Requested disk size is too big (%lu > %lu)\n",
1473 * and by available on-disk context storage.
1477 * One transaction occupies one 4kB on-disk block,
1478 * we have n such blocks in the on disk ring buffer,
1584 /* we also need a disk
1816 if (device->state.disk > D_DISKLESS) {
1904 * This also sets other on-disk offsets. */
1912 drbd_err(device, "max capacity %llu smaller than disk size %llu\n",
1931 "at least %llu sectors needed for this meta-disk type\n",
1936 /* Make sure the new disk is big enough
1937 * (we may currently be R_PRIMARY with no local disk...) */
1966 rv = _drbd_request_state(device, NS(disk, D_ATTACHING), CS_VERBOSE);
2115 If MDF_WAS_UP_TO_DATE is not set go into D_OUTDATED disk state,
2120 ns.disk = D_CONSISTENT;
2122 ns.disk = D_OUTDATED;
2124 ns.disk = D_INCONSISTENT;
2131 if (ns.disk == D_CONSISTENT &&
2133 ns.disk = D_UP_TO_DATE;
2147 /* In case we are C_CONNECTED postpone any decision on the new disk
2152 ns.disk = D_NEGOTIATING;
2187 drbd_force_state(device, NS(disk, D_DISKLESS));
2209 drbd_force_state(device, NS(disk, D_FAILED));
2216 /* Detaching the disk is a process in multiple stages. First we need to lock
2741 disk, D_OUTDATED), 0);
3038 retcode = drbd_request_state(device, NS(disk, D_INCONSISTENT));
3211 * And now we don't have a local disk either. After
3233 if (device->state.disk == D_DISKLESS || device->state.disk == D_FAILED)
3245 return drbd_adm_simple_request_state(skb, info, NS(disk, D_OUTDATED));
4227 _drbd_set_state(_NS2(device, disk, D_UP_TO_DATE, pdsk, D_UP_TO_DATE),
4329 info->dev_disk_state = device->state.disk;
4407 if (device->state.disk == D_DISKLESS &&