Page MenuHomeFreeBSD

D8331.diff
No OneTemporary

D8331.diff

Index: head/sys/boot/zfs/zfsimpl.c
===================================================================
--- head/sys/boot/zfs/zfsimpl.c
+++ head/sys/boot/zfs/zfsimpl.c
@@ -2122,8 +2122,13 @@
&dir)) != 0)
return (rc);
if ((rc = zap_lookup(spa, &dir, DMU_POOL_FEATURES_FOR_READ,
- sizeof (objnum), 1, &objnum)) != 0)
- return (rc);
+ sizeof (objnum), 1, &objnum)) != 0) {
+ /*
+ * It is older pool without features. As we have already
+ * tested the label, just return without raising the error.
+ */
+ return (0);
+ }
if ((rc = objset_get_dnode(spa, &spa->spa_mos, objnum, &dir)) != 0)
return (rc);

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 13, 7:55 AM (21 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15779439
Default Alt Text
D8331.diff (632 B)

Event Timeline