diff options
author | Pawel Baldysiak <pawel.baldysiak@intel.com> | 2017-09-28 14:41:11 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2017-10-02 16:11:42 -0400 |
commit | b251424242b46d62f666829c0e7a7550768fc8de (patch) | |
tree | ab6fbd34813d5f301685787eaf8912024f034ec9 /mdadm.h | |
parent | 44b6b87610281a4add36a1addd7630095dc8a545 (diff) | |
download | mdadm-b251424242b46d62f666829c0e7a7550768fc8de.tar.gz |
Zeroout whole ppl space during creation/force assemble
PPL area should be cleared before creation/force assemble.
If the drive was used in other RAID array, it might contains PPL from it.
There is a risk that mdadm recognizes those PPLs and
refuses to assemble the RAID due to PPL conflict with created
array.
Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -687,6 +687,7 @@ 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, int len); +extern int zero_disk_range(int fd, unsigned long long sector, size_t count); extern int reshape_prepare_fdlist(char *devname, struct mdinfo *sra, int raid_disks, |