Lines Matching refs:device
18 #include <linux/device-mapper.h>
24 * Minimum sectors of free reshape space per raid device
48 * While it is possible for this device to be associated
49 * with a different physical device than the data_dev, it
83 #define __CTR_FLAG_JOURNAL_DEV 15 /* 2 */ /* Only with raid4/5/6 (journal device)! */
250 /* Optional raid4/5/6 journal device */
689 * raid10 sets rdev->sector to the device size, which
805 * For every device we have two words
806 * <meta_dev>: meta device name or '-' if missing
807 * <data_dev>: data device name or '-' if missing
855 rs->ti->error = "RAID metadata device lookup failure";
878 rs->ti->error = "No data device supplied with metadata device";
888 rs->ti->error = "RAID device lookup failure";
1066 * that the device that holds its copy is not also dead or
1163 * We set each individual device as In_sync with a completed
1164 * 'recovery_offset'. If there has been a device failure or
1169 * 2) A new device is supplied.
1170 * - No matching superblock found, resets device.
1172 * - Failure noticed, resets device for bitmap replay.
1250 rs->ti->error = "Only one raid4/5/6 set journaling device allowed";
1260 rs->ti->error = "raid4/5/6 journal device lookup failure";
1353 * In device-mapper, we specify things in sectors, but
1587 * Retrieve rdev->sectors from any valid raid device of @rs
1588 * to allow userpace to pass in arbitray "- -" device tupples.
1615 rs->ti->error = "Component device(s) too small";
1623 /* Calculate the sectors per device and per array used for @rs */
1923 * Devices with this superblock should only ever be accessed via device-mapper.
1989 __le64 sectors; /* Used device size in sectors */
2043 DMERR("Failed to read superblock of device at position %d",
2090 /* No metadata device, no superblock */
2161 * This function creates a superblock if one is not found on the device
2181 * 1) New device (no matching magic number)
2317 * 2) This is a new device being added to an old raid set
2318 * and the new device needs to be rebuilt - in which
2321 * 3) This is/are a new device(s) being added to an old
2344 /* Replace a broken device */
2350 DMERR("New device injected into existing raid set without "
2361 DMERR("new device%s provided without 'rebuild'",
2389 * Check for any device re-ordering.
2410 rs->ti->error = "Cannot change device positions in raid set";
2414 DMINFO("raid device #%d now at position #%d", role, r->raid_disk);
2475 * disk(s) and have to set the device(s) to out-of-sync
2482 * If a device comes back, set it as not In_sync and no longer faulty.
2514 /* Set superblock offset/size for metadata device. */
2543 /* This is a failure to read the superblock from the metadata device. */
2545 * We have to keep any raid0 data/metadata device pairs or
2552 * We keep the dm_devs to be able to emit the device tuple
2568 * Validation of the freshest device provides the source of
2661 * Make sure we got a minimum amount of free sectors per device
2677 /* Adjust data offsets on all rdevs but on any raid4/5/6 journal device */
2924 * Adjust device size for forward reshape
3026 /* number of raid device tupples <meta_dev data_dev> */
3053 * Calculate ctr requested array and device sizes to allow
3054 * for superblock analysis needing device sizes defined.
3056 * Any existing superblock will overwrite the array and device sizes
3199 /* May not set recovery when a device rebuild is requested */
3394 * 'D' = Dead/Failed raid set component or raid4/5/6 journal device
3395 * 'a' = Alive but not in-sync raid set component _or_ alive raid4/5/6 'write_back' journal device
3396 * 'A' = Alive and in-sync raid set component _or_ alive raid4/5/6 'write_through' journal device
3397 * '-' = Non-existing device (i.e. uspace passed '- -' into the ctr)
3561 * See Documentation/admin-guide/device-mapper/dm-raid.rst for
3820 /* HM FIXME: enhance journal device recovery processing */
3826 DMINFO("Faulty %s device #%d has readable super block."
3833 * by removing the device from the array (i.e. calling
3835 * the failed device, its 'raid_disk' number will be
3843 /* Failed to revive this device, try next */
3854 /* Failed to revive this device, try next */
3997 /* Resize bitmap to adjust to changed region size (aka MD bitmap chunksize) or grown device size */
4041 * A secondary resume while the device is active.