Lines Matching refs:disk
163 io_allowed = (device->state.disk >= mins);
299 * tl_abort_disk_io() - Abort disk I/O for all requests for a certain device in the TL
858 uuid_flags |= device->new_state_tmp.disk == D_INCONSISTENT ? 4 : 0;
900 D_ASSERT(device, device->state.disk == D_UP_TO_DATE);
1291 drbd_err(device, "Failed to write bitmap to disk!\n");
1974 .disk = D_DISKLESS,
2726 struct gendisk *disk;
2754 disk = alloc_disk(1);
2755 if (!disk)
2757 device->vdisk = disk;
2759 set_disk_ro(disk, true);
2761 disk->queue = q;
2762 disk->major = DRBD_MAJOR;
2763 disk->first_minor = minor;
2764 disk->fops = &drbd_ops;
2765 sprintf(disk->disk_name, "drbd%d", minor);
2766 disk->private_data = device;
2825 add_disk(disk);
2858 put_disk(disk);
3087 * metadata even if we detach due to a disk failure! */
3158 /* The on-disk size of the activity log, calculated from offsets, and
3162 * fits in the available on-disk activity log size.
3165 * of possible unused padding space in the on disk layout. */
3200 /* should fit (for now: exactly) into the available on-disk space;
3248 if (device->state.disk != D_DISKLESS)
3267 called BEFORE disk is attached */