md.h (35bfc52187f6df8779d0f1cebdb52b7f797baf4e) | md.h (b03e0ccb5ab9df3efbe51c87843a1ffbecbafa1f) |
---|---|
1/* 2 md.h : kernel internal structure of the Linux MD driver 3 Copyright (C) 1996-98 Ingo Molnar, Gadi Oxman 4 5 This program is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation; either version 2, or (at your option) 8 any later version. --- 530 unchanged lines hidden (view full) --- 539 int (*hot_remove_disk) (struct mddev *mddev, struct md_rdev *rdev); 540 int (*spare_active) (struct mddev *mddev); 541 sector_t (*sync_request)(struct mddev *mddev, sector_t sector_nr, int *skipped); 542 int (*resize) (struct mddev *mddev, sector_t sectors); 543 sector_t (*size) (struct mddev *mddev, sector_t sectors, int raid_disks); 544 int (*check_reshape) (struct mddev *mddev); 545 int (*start_reshape) (struct mddev *mddev); 546 void (*finish_reshape) (struct mddev *mddev); | 1/* 2 md.h : kernel internal structure of the Linux MD driver 3 Copyright (C) 1996-98 Ingo Molnar, Gadi Oxman 4 5 This program is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation; either version 2, or (at your option) 8 any later version. --- 530 unchanged lines hidden (view full) --- 539 int (*hot_remove_disk) (struct mddev *mddev, struct md_rdev *rdev); 540 int (*spare_active) (struct mddev *mddev); 541 sector_t (*sync_request)(struct mddev *mddev, sector_t sector_nr, int *skipped); 542 int (*resize) (struct mddev *mddev, sector_t sectors); 543 sector_t (*size) (struct mddev *mddev, sector_t sectors, int raid_disks); 544 int (*check_reshape) (struct mddev *mddev); 545 int (*start_reshape) (struct mddev *mddev); 546 void (*finish_reshape) (struct mddev *mddev); |
547 /* quiesce moves between quiescence states 548 * 0 - fully active 549 * 1 - no new requests allowed 550 * others - reserved | 547 /* quiesce suspends or resumes internal processing. 548 * 1 - stop new actions and wait for action io to complete 549 * 0 - return to normal behaviour |
551 */ | 550 */ |
552 void (*quiesce) (struct mddev *mddev, int state); | 551 void (*quiesce) (struct mddev *mddev, int quiesce); |
553 /* takeover is used to transition an array from one 554 * personality to another. The new personality must be able 555 * to handle the data in the current layout. 556 * e.g. 2drive raid1 -> 2drive raid5 557 * ndrive raid5 -> degraded n+1drive raid6 with special layout 558 * If the takeover succeeds, a new 'private' structure is returned. 559 * This needs to be installed and then ->run used to activate the 560 * array. --- 187 unchanged lines hidden --- | 552 /* takeover is used to transition an array from one 553 * personality to another. The new personality must be able 554 * to handle the data in the current layout. 555 * e.g. 2drive raid1 -> 2drive raid5 556 * ndrive raid5 -> degraded n+1drive raid6 with special layout 557 * If the takeover succeeds, a new 'private' structure is returned. 558 * This needs to be installed and then ->run used to activate the 559 * array. --- 187 unchanged lines hidden --- |