]> git.proxmox.com Git - mirror_zfs-debian.git/blobdiff - module/zfs/uberblock.c
Imported Upstream version 0.6.2+git20140204
[mirror_zfs-debian.git] / module / zfs / uberblock.c
index 692cda137f1aa68dc3db689c6d1486d359e5fc3f..a07dc00ae19a84ee787445176e7c5e38ac13a452 100644 (file)
@@ -20,6 +20,7 @@
  */
 /*
  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013 by Delphix. All rights reserved.
  */
 
 #include <sys/zfs_context.h>
@@ -33,7 +34,7 @@ uberblock_verify(uberblock_t *ub)
                byteswap_uint64_array(ub, sizeof (uberblock_t));
 
        if (ub->ub_magic != UBERBLOCK_MAGIC)
-               return (EINVAL);
+               return (SET_ERROR(EINVAL));
 
        return (0);
 }