diff options
author | NeilBrown <neilb@suse.de> | 2013-07-01 13:28:13 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-07-01 13:28:13 +1000 |
commit | efc67e8e9fe430d5833236f16ea287ef363dadc5 (patch) | |
tree | 4da51e5aa6580aa3ae63eaf318fe16d93ad59163 /mdadm.h | |
parent | a2836f12c4c45738b495403a91a0f0db2e88e0cb (diff) |
New function: sysfs_wait
We have several places that wait for activity on a sysfs
file. Combine most of these into a single 'sysfs_wait' function.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -549,6 +549,7 @@ extern int sysfs_add_disk(struct mdinfo *sra, struct mdinfo *sd, int resume); extern int sysfs_disk_to_scsi_id(int fd, __u32 *id); extern int sysfs_unique_holder(char *devnm, long rdev); extern int sysfs_freeze_array(struct mdinfo *sra); +extern int sysfs_wait(int fd, int *msec); extern int load_sys(char *path, char *buf); extern int reshape_prepare_fdlist(char *devname, struct mdinfo *sra, |