diff options
author | Lidong Zhong <lidong.zhong@suse.com> | 2020-12-14 15:51:33 +0100 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2020-12-20 19:45:30 +0100 |
commit | 75562b57d43bd252399b55d0004b8eac4b337a67 (patch) | |
tree | 619187ee89e1ab2cbf24efc587a1b543cc9db555 /super1.c | |
parent | Incremental: Remove redundant spare movement logic (diff) | |
download | mdadm-75562b57d43bd252399b55d0004b8eac4b337a67.tar.xz mdadm-75562b57d43bd252399b55d0004b8eac4b337a67.zip |
Dump: get stat from a wrong metadata file when restoring metadata
The dumped metadata files are shown as below
localhost:~ # ll -ih test/
total 16K
34565564 -rw-r--r-- 2 root root 1.0G Dec 14 21:15
scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-3
34565563 -rw-r--r-- 2 root root 1.0G Dec 14 21:15
scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-4
34565563 -rw-r--r-- 2 root root 1.0G Dec 14 21:15 sda
34565564 -rw-r--r-- 2 root root 1.0G Dec 14 21:15 sdb
It reports such error when trying to restore metadata for /dev/sda
localhost:~ # mdadm --restore=test /dev/sda
mdadm: test/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-4 is not the same
size as /dev/sda - cannot restore.
It's because the stb value has been changed to other metadata file in
the while statement.
Signed-off-by: Lidong Zhong <lidong.zhong@suse.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'super1.c')
0 files changed, 0 insertions, 0 deletions