mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Increase meta-dnode redundancy in "some" mode
Loss of one indirect block of the meta dnode likely means loss of the whole dataset. It is worse than one file that the man page promises, and in my opinion is not much better than "none" mode. This change restores redundancy of the meta-dnode indirect blocks, while same time still corrects expectations in the man page. Reviewed-by: Akash B <akash-b@hpe.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Rob Norris <robn@despairlabs.com> Signed-off-by: Alexander Motin <mav@FreeBSD.org> Sponsored by: iXsystems, Inc. Closes #17339
This commit is contained in:
+2
-2
@@ -144,9 +144,9 @@ typedef enum dmu_object_byteswap {
|
||||
#define DMU_OT_IS_DDT(ot) \
|
||||
((ot) == DMU_OT_DDT_ZAP)
|
||||
|
||||
#define DMU_OT_IS_CRITICAL(ot) \
|
||||
#define DMU_OT_IS_CRITICAL(ot, level) \
|
||||
(DMU_OT_IS_METADATA(ot) && \
|
||||
(ot) != DMU_OT_DNODE && \
|
||||
((ot) != DMU_OT_DNODE || (level) > 0) && \
|
||||
(ot) != DMU_OT_DIRECTORY_CONTENTS && \
|
||||
(ot) != DMU_OT_SA)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user