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;
808 * the on disk meta data.
894 * R_PRIMARY D_INCONSISTENT, and peer's disk is unreachable
895 * (not connected, or bad/no disk on peer):
949 /* We may change the on-disk offsets of our meta data below. Lock out
1039 * to move the on-disk location of the activity log ringbuffer.
1044 /* mark current on-disk bitmap and activity log as unreliable */
1058 /* on-disk bitmap and activity log is authoritative again
1097 sector_t p_size = device->p_size; /* partner's disk size. */
1131 drbd_err(device, "Requested disk size is too big (%lu > %lu)\n",
1407 * and by available on-disk context storage.
1411 * One transaction occupies one 4kB on-disk block,
1412 * we have n such blocks in the on disk ring buffer,
1521 /* we also need a disk
1755 if (device->state.disk > D_DISKLESS) {
1843 * This also sets other on-disk offsets. */
1851 drbd_err(device, "max capacity %llu smaller than disk size %llu\n",
1870 "at least %llu sectors needed for this meta-disk type\n",
1875 /* Make sure the new disk is big enough
1876 * (we may currently be R_PRIMARY with no local disk...) */
1905 rv = _drbd_request_state(device, NS(disk, D_ATTACHING), CS_VERBOSE);
2056 If MDF_WAS_UP_TO_DATE is not set go into D_OUTDATED disk state,
2061 ns.disk = D_CONSISTENT;
2063 ns.disk = D_OUTDATED;
2065 ns.disk = D_INCONSISTENT;
2072 if (ns.disk == D_CONSISTENT &&
2074 ns.disk = D_UP_TO_DATE;
2088 /* In case we are C_CONNECTED postpone any decision on the new disk
2093 ns.disk = D_NEGOTIATING;
2128 drbd_force_state(device, NS(disk, D_DISKLESS));
2153 drbd_force_state(device, NS(disk, D_FAILED));
2160 /* Detaching the disk is a process in multiple stages. First we need to lock
2684 disk, D_OUTDATED), 0);
2981 retcode = drbd_request_state(device, NS(disk, D_INCONSISTENT));
3155 * And now we don't have a local disk either. After
3177 if (device->state.disk == D_DISKLESS || device->state.disk == D_FAILED)
3189 return drbd_adm_simple_request_state(skb, info, NS(disk, D_OUTDATED));
4171 _drbd_set_state(_NS2(device, disk, D_UP_TO_DATE, pdsk, D_UP_TO_DATE),
4273 info->dev_disk_state = device->state.disk;
4351 if (device->state.disk == D_DISKLESS &&