path: root/Makefile.libcompat
diff options
authorToomas Soome <tsoome@FreeBSD.org>2017-04-06 18:17:29 +0000
committerToomas Soome <tsoome@FreeBSD.org>2017-04-06 18:17:29 +0000
commite41fab8d404a80323255521bc3201053ea36688c (patch)
tree1f314fc33df888ec538dc7abdfb6a05123a78ca0 /Makefile.libcompat
parent8844e55d4ad5aaa2f6ccd1b2760d53f0f77b8803 (diff)
loader: zfs reader should check all labels
The current zfs reader is only checking first label from each device, however, we do have 4 labels on device and we should check all 4 to be protected against disk failures and incomplete label updates. The difficulty is about the fact that 2 label copies are in front of the pool data, and 2 are at the end, which means, we have to know the size of the pool data area. Since we have now the mechanism from common/disk.c to use the partition information, it does help us in this task; however, there are still some corner cases. Namely, if the pool is created without partition, directly on the disk, and firmware will give us the wrong size for the disk, we only can check the first two label copies. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D10203
Notes: svn path=/head/; revision=316585
Diffstat (limited to 'Makefile.libcompat')
0 files changed, 0 insertions, 0 deletions